spec/low/mongo_spec.rb in low-0.0.15 vs spec/low/mongo_spec.rb in low-0.0.16
- old
+ new
@@ -38,10 +38,10 @@
describe '#connection' do
it 'should get a new ::Mongo::Connection instance for the specified #host' do
mongo = MongoTest.new
connection = double('mongo connection')
- ::Mongo::Connection.should_receive(:new).with('localhost').and_return(connection)
+ ::Mongo::MongoClient.should_receive(:new).with('localhost').and_return(connection)
mongo.connection.should == connection
end
end
end