Method: RSpec::Matchers::BuiltIn::BeWithin#failure_message

Defined in:
lib/rspec/matchers/built_in/be_within.rb

#failure_messageString

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (String)


40
41
42
# File 'lib/rspec/matchers/built_in/be_within.rb', line 40

def failure_message
  "expected #{actual_formatted} to #{description}#{not_numeric_clause}"
end