Method: RSpec::Matchers::BuiltIn::RaiseError#failure_message

Defined in:
lib/rspec/matchers/built_in/raise_error.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)


105
106
107
# File 'lib/rspec/matchers/built_in/raise_error.rb', line 105

def failure_message
  @eval_block ? actual_error_message : "expected #{expected_error}#{given_error}"
end