mongodb-mongo 0.4.3 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'mongo'
3
- s.version = '0.4.3'
3
+ s.version = '0.4.4'
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.summary = 'Simple pure-Ruby driver for the 10gen Mongo DB'
6
6
  s.description = 'A pure-Ruby driver for the 10gen Mongo DB. For more information about Mongo, see http://www.mongodb.org.'
data/tests/test_db.rb CHANGED
@@ -53,7 +53,7 @@ class DBTest < Test::Unit::TestCase
53
53
  def test_pair
54
54
  @db.close
55
55
  @users = nil
56
- @db = Mongo.new({:left => "nosuch.example.com", :right => [@host, @port]}).db('ruby-mongo-test')
56
+ @db = Mongo.new({:left => "this-should-fail", :right => [@host, @port]}).db('ruby-mongo-test')
57
57
  assert @db.connected?
58
58
  end
59
59
 
data/tests/test_db_api.rb CHANGED
@@ -70,7 +70,10 @@ class DBAPITest < Test::Unit::TestCase
70
70
  docs = @coll.find('a' => @r1['a']).to_a
71
71
  assert_equal 1, docs.size
72
72
  doc = docs.first
73
- assert_equal doc['_id'], @r1['_id']
73
+ # Can't compare _id values because at insert, an _id was added to @r1 by
74
+ # the database but we don't know what it is without re-reading the record
75
+ # (which is what we are doing right now).
76
+ # assert_equal doc['_id'], @r1['_id']
74
77
  assert_equal doc['a'], @r1['a']
75
78
  end
76
79
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongodb-mongo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Menard