Sha256: 4b74f3b97886c8438b81f640247c8cf2d99b83a92b6a9d1cd937245fef3ba4e9
Contents?: true
Size: 467 Bytes
Versions: 5
Compression:
Stored size: 467 Bytes
Contents
module Mongoid module Matchers class BeStoredInMatcher < Matcher 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
5 entries across 5 versions & 1 rubygems