Method: RSpec::Matchers::BuiltIn::Exist#failure_message_when_negated

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

#failure_message_when_negatedString

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)


36
37
38
# File 'lib/rspec/matchers/built_in/exist.rb', line 36

def failure_message_when_negated
  "expected #{actual_formatted} not to exist#{@test.validity_message}"
end