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