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