# File lib/mspec/matchers/have_singleton_method.rb, line 9deffailure_message
["Expected #{@obj} to have singleton method '#{@method.to_s}'",
"but it does not"]
end
matches?(obj)click to toggle source
# File lib/mspec/matchers/have_singleton_method.rb, line 4defmatches?(obj)
@obj = objobj.singleton_methods(@include_super).include?@methodend
negative_failure_message()click to toggle source
# File lib/mspec/matchers/have_singleton_method.rb, line 14defnegative_failure_message
["Expected #{@obj} NOT to have singleton method '#{@method.to_s}'",
"but it does"]
end