lib/matchers/collections.rb in mongoid-rspec-1.4.5 vs lib/matchers/collections.rb in mongoid-rspec-1.4.6

- old
+ new

@@ -1,7 +1,7 @@ RSpec::Matchers.define :be_stored_in do |collection_name| match do |doc| - doc.collection_name == collection_name.to_s + doc.class.collection_name == collection_name end description do "be stored in #{collection_name.to_s}" end \ No newline at end of file