mongoid_ability 0.0.9 → 0.0.10

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dd50f6141566a2e2c5d2814db0a66d5bd7f8a419
4
- data.tar.gz: 4410f6d3f4991cdb145c1f68ca8d80c1c8943562
3
+ metadata.gz: b9f8c03f91ed61aacbed7566298e047477a3a6b5
4
+ data.tar.gz: 2f7a8e17c320ecd2fa53bcd21bb6daa06aa436a4
5
5
  SHA512:
6
- metadata.gz: 27e701a3f9991f7d03aa13e669e9764c85f4f233d5d15b759c044ccc10b2574dc474d62728dcf88de7cc25bb7e064cd8f04851f87780359673a6124490059df5
7
- data.tar.gz: bbaeeaa89f8166741eb5c8f90d16bd00bcaede8c116099bea982446dc39b0824234acf1ada6c1eaaa978abc6bc9c7559102656c8580a7e263e71d33f862f8bc6
6
+ metadata.gz: 4689294020abcf62b7b3b344e2a226a0ca6c54c49b3e531a5b21e637da44d89b27f34257e40f750135802b4bb5fd1a47944a444ba87aa1536bb42294b88d5a21
7
+ data.tar.gz: 815cc02e48e356466b72f347839a692ca305fc3d0fe7138d6afc54b61fcadb740cde9f1f711e44b769dbb8505baa4490d0f11a66a25a41240a8ee6d68f691e58
@@ -1,3 +1,3 @@
1
1
  module MongoidAbility
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
@@ -54,9 +54,8 @@ module MongoidAbility
54
54
  end
55
55
 
56
56
  describe 'when trying to insert another lock for same action' do
57
- before do
58
- subject.class.default_lock :read, false
59
- end
57
+ before { subject.class.default_lock :read, false }
58
+ after { subject.class.default_lock :read, true }
60
59
 
61
60
  it 'does not create duplicate' do
62
61
  subject.class.default_locks.select{ |l| l.action == :read }.length.must_equal 1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_ability
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Celizna