class RSpec::Rails::Matchers::BeANewRecord

@private

def failure_message

def failure_message
  "expected #{actual.inspect} to be a new record, but was persisted"
end

def failure_message_when_negated

def failure_message_when_negated
  "expected #{actual.inspect} to be persisted, but was a new record"
end

def matches?(actual)

def matches?(actual)
  actual.new_record?
end