Parent

Class/Module Index [+]

Quicksearch

RSpec::Expectations::ExpectationHandler

Public Class Methods

check_message(msg) click to toggle source
# 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
message_must_be_string(msg) click to toggle source
# 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

[Validate]

Generated with the Darkfish Rdoc Generator 2.