spec/support/helpers/document_finder_stubs.rb in mongomodel-0.3.3 vs spec/support/helpers/document_finder_stubs.rb in mongomodel-0.3.4
- old
+ new
@@ -1,8 +1,8 @@
-require 'spec/mocks'
+require 'rspec/mocks'
module DocumentFinderStubs
- include Spec::Mocks::ExampleMethods
+ include RSpec::Mocks::ExampleMethods
def stub_find(result)
find_result = mock('find result', :to_a => result.map { |doc| doc.to_mongo }, :count => result.size).as_null_object
collection.stub!(:find).and_return(find_result)
end