Sha256: 7734f4095d0f5de27de999f3af4db2b5ddfaf97f7dd43cf9d939d74f593cf20b

Contents?: true

Size: 129 Bytes

Versions: 8

Compression:

Stored size: 129 Bytes

Contents

RSpec::Matchers.define :be_a_new do |model_klass|
  match do |actual|
    model_klass === actual && actual.new_record?
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rspec-rails-2.0.0.beta.19 lib/rspec/rails/matchers/be_a_new.rb
rspec-rails-2.0.0.beta.18 lib/rspec/rails/matchers/be_a_new.rb
rspec-rails-2.0.0.beta.17 lib/rspec/rails/matchers/be_a_new.rb
rspec-rails-2.0.0.beta.16 lib/rspec/rails/matchers/be_a_new.rb
rspec-rails-2.0.0.beta.15 lib/rspec/rails/matchers/be_a_new.rb
rspec-rails-2.0.0.beta.14.2 lib/rspec/rails/matchers/be_a_new.rb
rspec-rails-2.0.0.beta.14.1 lib/rspec/rails/matchers/be_a_new.rb
rspec-rails-2.0.0.beta.13 lib/rspec/rails/matchers/be_a_new.rb