mongoid_versioned_atomic 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mongoid_versioned_atomic/v_atomic.rb +2 -2
- data/lib/mongoid_versioned_atomic/version.rb +1 -1
- data/test/dummy/log/test.log +1503 -0
- data/test/v_atomic_test.rb +2 -1
- metadata +1 -1
data/test/v_atomic_test.rb
CHANGED
@@ -40,7 +40,7 @@ class CoreExtTest < ActiveSupport::TestCase
|
|
40
40
|
a2.name = "bb"
|
41
41
|
a2.email = "bhargav.r.raut@gmail.com"
|
42
42
|
a2.versioned_create({"email" => a2.email})
|
43
|
-
assert_equal
|
43
|
+
assert_equal false, a2.op_success, "this op should not succeed"
|
44
44
|
assert_nil a2.upserted_id,"no new doc should be upserted"
|
45
45
|
assert_equal 1, a2.matched_count, "it should match an existing doc"
|
46
46
|
end
|
@@ -200,6 +200,7 @@ class CoreExtTest < ActiveSupport::TestCase
|
|
200
200
|
u.name = "bhargav"
|
201
201
|
u.email = "t@gmail.com"
|
202
202
|
u.versioned_create
|
203
|
+
|
203
204
|
|
204
205
|
u1 = User.new
|
205
206
|
u1.name = "dog"
|