Sha256: ba5cede155fda7bda40060212f2b5c387fffaad7700011c081dd0db292485041

Contents?: true

Size: 200 Bytes

Versions: 24

Compression:

Stored size: 200 Bytes

Contents

RSpec::Matchers.define :be_stored_in do |collection_name|
  match do |doc|
    doc.class.collection_name == collection_name
  end

  description do
    "be stored in #{collection_name.to_s}"
  end
end

Version data entries

24 entries across 24 versions & 3 rubygems

Version Path
mongoid-rspec-3.0.0 lib/matchers/collections.rb
mongoid-rspec-2.2.0 lib/matchers/collections.rb
mongoid-rspec-2.1.0 lib/matchers/collections.rb
mongoid-rspec-1.13.0 lib/matchers/collections.rb
mongoid-rspec-2.0.0 lib/matchers/collections.rb
mongoid-rspec-2.0.0.rc1 lib/matchers/collections.rb
glebtv-mongoid-rspec-3.0.0 lib/matchers/collections.rb
mongoid4-rspec-1.11.0 lib/matchers/collections.rb
glebtv-mongoid-rspec-1.12.0 lib/matchers/collections.rb
mongoid-rspec-1.11.0 lib/matchers/collections.rb
mongoid-rspec-1.10.0 lib/matchers/collections.rb
mongoid-rspec-1.9.0 lib/matchers/collections.rb
mongoid-rspec-1.8.2 lib/matchers/collections.rb
mongoid-rspec-1.8.1 lib/matchers/collections.rb
mongoid-rspec-1.8.0 lib/matchers/collections.rb
mongoid-rspec-1.7.0 lib/matchers/collections.rb
mongoid-rspec-1.6.0 lib/matchers/collections.rb
mongoid-rspec-1.5.6 lib/matchers/collections.rb
mongoid-rspec-1.5.5 lib/matchers/collections.rb
mongoid-rspec-1.5.4 lib/matchers/collections.rb