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-1.5.3 lib/matchers/collections.rb
mongoid-rspec-1.5.1 lib/matchers/collections.rb
mongoid-rspec-1.5.0 lib/matchers/collections.rb
mongoid-rspec-1.4.6 lib/matchers/collections.rb