mongodb-mongo 0.10 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mongo/collection.rb +1 -0
- data/mongo-ruby-driver.gemspec +1 -1
- data/tests/test_db_api.rb +4 -3
- metadata +1 -1
data/lib/mongo/collection.rb
CHANGED
data/mongo-ruby-driver.gemspec
CHANGED
@@ -79,7 +79,7 @@ TEST_FILES = ['tests/mongo-qa/_common.rb',
|
|
79
79
|
|
80
80
|
Gem::Specification.new do |s|
|
81
81
|
s.name = 'mongo'
|
82
|
-
s.version = '0.10'
|
82
|
+
s.version = '0.10.1'
|
83
83
|
s.platform = Gem::Platform::RUBY
|
84
84
|
s.summary = 'Ruby driver for the 10gen Mongo DB'
|
85
85
|
s.description = 'A Ruby driver for the 10gen Mongo DB. For more information about Mongo, see http://www.mongodb.org.'
|
data/tests/test_db_api.rb
CHANGED
@@ -48,7 +48,7 @@ class DBAPITest < Test::Unit::TestCase
|
|
48
48
|
|
49
49
|
def test_insert_multiple
|
50
50
|
ids = @@coll.insert({'a' => 2}, {'b' => 3})
|
51
|
-
|
51
|
+
|
52
52
|
ids.each do |i|
|
53
53
|
assert_kind_of ObjectID, i
|
54
54
|
end
|
@@ -619,10 +619,11 @@ class DBAPITest < Test::Unit::TestCase
|
|
619
619
|
|
620
620
|
a = {"hello" => "world"}
|
621
621
|
|
622
|
-
|
622
|
+
id = @@coll.save(a)
|
623
|
+
assert_kind_of ObjectID, id
|
623
624
|
assert_equal 1, @@coll.count
|
624
625
|
|
625
|
-
@@coll.save(@@coll.find_first)
|
626
|
+
assert_equal id, @@coll.save(@@coll.find_first)
|
626
627
|
assert_equal 1, @@coll.count
|
627
628
|
|
628
629
|
assert_equal "world", @@coll.find_first()["hello"]
|