class RSpec::Rails::Matchers::BeANewRecord

Public Instance Methods

matches?(actual) click to toggle source

@api private

# File lib/rspec/rails/matchers/be_new_record.rb, line 6
def matches?(actual)
  !actual.persisted?
end