Sha256: ac2e87a9cd7626c1b6a2261a352c0ad51e68d22c6efe05679a02f15f5430fe18
Contents?: true
Size: 480 Bytes
Versions: 2
Compression:
Stored size: 480 Bytes
Contents
module Mongoid module Matchers class BeStoredInMatcher include Helpers def initialize(collection_name) @collection_name = collection_name.to_s end def matches?(subject) class_of(subject).collection_name.to_s == @collection_name end def description "be stored in #{@collection_name.inspect}" end end def be_stored_in(collection_name) BeStoredInMatcher.new(collection_name) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mongoid-minitest-0.1.1 | lib/matchers/document/be_stored_in.rb |
mongoid-minitest-0.1.0 | lib/matchers/document/be_stored_in.rb |