Parent

Files

Class/Module Index [+]

Quicksearch

HaveMethodMatcher

Public Instance Methods

failure_message() click to toggle source
# File lib/mspec/matchers/have_method.rb, line 9
def failure_message
  ["Expected #{@mod} to have method '#{@method.to_s}'",
   "but it does not"]
end
matches?(mod) click to toggle source
# File lib/mspec/matchers/have_method.rb, line 4
def matches?(mod)
  @mod = mod
  @mod.methods(@include_super).include? @method
end
negative_failure_message() click to toggle source
# File lib/mspec/matchers/have_method.rb, line 14
def negative_failure_message
  ["Expected #{@mod} NOT to have method '#{@method.to_s}'",
   "but it does"]
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.