Parent

Files

Class/Module Index [+]

Quicksearch

HaveInstanceMethodMatcher

Public Instance Methods

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.