Sha256: 6b478fccc45549e9c8c7263ab21e9e12a573ad647e6e58d3c9c9bc6562f91525

Contents?: true

Size: 199 Bytes

Versions: 5

Compression:

Stored size: 199 Bytes

Contents

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

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

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
mongoid-rspec-1.4.5 lib/matchers/collections.rb
mongoid-rspec-multi-db-1.4.4 lib/matchers/collections.rb
mongoid-rspec-1.4.4 lib/matchers/collections.rb
mongoid-rspec-1.4.3 lib/matchers/collections.rb
mongoid-rspec-1.4.2 lib/matchers/collections.rb