module RSpec::Expectations::ExpectationHelper

def self.check_message(msg)

def self.check_message(msg)
  unless msg.nil? || msg.respond_to?(:to_str) || msg.respond_to?(:call)
    RSpec.warning(
      "ignoring the provided expectation message argument" \
      "(#{ msg.inspect }) since it is not a string or a proc"
    )
  end
end