spec/config_proxy_spec.rb in mongo-db-utils-0.0.9.2 vs spec/config_proxy_spec.rb in mongo-db-utils-0.0.9.3
- old
+ new
@@ -21,10 +21,10 @@
@config = MongoDbUtils::ConfigProxy.new(config)
end
it "should add a single db" do
db = HighLine::String.new("mongodb://localhost:27017/db ")
- @config.add_db_from_uri(db)
+ @config.add_single_db(db)
@config.dbs.length.should == 1
@config.dbs[0].uri.should == "mongodb://localhost:27017/db"
@config.dbs[0].uri.class.to_s.should == "String"
end