mongoid-audit_log 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/mongoid/audit_log/entry.rb +4 -2
- data/lib/mongoid/audit_log/version.rb +1 -1
- data/spec/mongoid/audit_log/entry_spec.rb +9 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NjAyNmMxNWY1NzY4ZDMxMjJkZDg5ZjNkOTQwY2MwNjhhZmU5N2EyZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NjhiYmJkZDU5ZTk2NTY2NWYxYzQyMGFiZTg0NWZkMWY3NjMyNTlkMw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YWU2NzYyNTZjYTQwMWQyOTIwMTEyM2VjZWQzY2E4MjdmMDlhMDBlMDAzMmZh
|
10
|
+
NTEwMDQ0MWI4M2RhMjUyZTAzMmFjNjU4NDZkY2YzNzE4YTk1YjU1YzU1YmRh
|
11
|
+
Zjc2ODJiZGJjMTljZjMyZmQzYTU5Nzg5ZGQ0ZGM5OTgwMzFiYzI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDY3N2IxYjI2MjRlMTVjYzMyNTIwMjIxNmJlNWU5NTk1ZjU4NGYwYjIyOTU1
|
14
|
+
NGRkYzJlNzlkMDQ3ZDBhY2MyZjM2YjA2OGM0ZWZhZGJjNmJjMjhiN2E4ODA0
|
15
|
+
NzY4OWFkMDk2MDBjNWFiYWI5NjMxNDI5MzAxNGUxYTRkYmY5N2Y=
|
@@ -70,6 +70,15 @@ module Mongoid
|
|
70
70
|
entry.modifier_id.should == 'test'
|
71
71
|
end
|
72
72
|
end
|
73
|
+
|
74
|
+
describe '#method_missing' do
|
75
|
+
let(:entry) { Entry.new(:caches => { 'name' => 'foo', 'other' => nil }) }
|
76
|
+
|
77
|
+
it 'responds to methods for which it has a cache' do
|
78
|
+
entry.name.should == 'foo'
|
79
|
+
entry.other.should == nil
|
80
|
+
end
|
81
|
+
end
|
73
82
|
end
|
74
83
|
end
|
75
84
|
end
|