diff --git a/mongo-ruby-driver.gemspec b/mongo-ruby-driver.gemspec index 6bf3c67..fc92316 100644 --- a/mongo-ruby-driver.gemspec +++ b/mongo-ruby-driver.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = 'mongo' - s.version = '0.4.3' + s.version = '0.4.4' s.platform = Gem::Platform::RUBY s.summary = 'Simple pure-Ruby driver for the 10gen Mongo DB' s.description = 'A pure-Ruby driver for the 10gen Mongo DB. For more information about Mongo, see http://www.mongodb.org.' diff --git a/tests/test_db.rb b/tests/test_db.rb index 4f0ba80..9d43601 100644 --- a/tests/test_db.rb +++ b/tests/test_db.rb @@ -53,7 +53,7 @@ class DBTest < Test::Unit::TestCase def test_pair @db.close @users = nil - @db = Mongo.new({:left => "nosuch.example.com", :right => [@host, @port]}).db('ruby-mongo-test') + @db = Mongo.new({:left => "this-should-fail", :right => [@host, @port]}).db('ruby-mongo-test') assert @db.connected? end diff --git a/tests/test_db_api.rb b/tests/test_db_api.rb index b0bbc87..48ca7c8 100644 --- a/tests/test_db_api.rb +++ b/tests/test_db_api.rb @@ -70,7 +70,10 @@ class DBAPITest < Test::Unit::TestCase docs = @coll.find('a' => @r1['a']).to_a assert_equal 1, docs.size doc = docs.first - assert_equal doc['_id'], @r1['_id'] + # Can't compare _id values because at insert, an _id was added to @r1 by + # the database but we don't know what it is without re-reading the record + # (which is what we are doing right now). +# assert_equal doc['_id'], @r1['_id'] assert_equal doc['a'], @r1['a'] end