# File lib/rspec/expectations/handler.rb, line 10defself.check_message(msg)
::Kernel.warnmessage_must_be_string(msg) unlessmsg.nil?||msg.is_a?(String)
end
message_must_be_string(msg)click to toggle source
# File lib/rspec/expectations/handler.rb, line 5defself.message_must_be_string(msg)
"WARNING: ignoring the provided expectation message argument "+"(#{msg.inspect}) since it is not a string."end