mongoid-clerk 0.0.3 → 0.0.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.
- data/Gemfile.lock +2 -2
- data/lib/clerk/logger.rb +1 -1
- data/lib/clerk/version.rb +1 -1
- data/spec/mongoid-clerk/logger_spec.rb +2 -2
- data/spec/spec_helper.rb +0 -1
- metadata +1 -1
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
mongoid-clerk (0.0.
|
4
|
+
mongoid-clerk (0.0.3)
|
5
5
|
activesupport
|
6
6
|
bson_ext
|
7
7
|
foreman
|
@@ -29,7 +29,7 @@ GEM
|
|
29
29
|
i18n (0.6.0)
|
30
30
|
mongo (1.6.2)
|
31
31
|
bson (~> 1.6.2)
|
32
|
-
mongoid (2.4.
|
32
|
+
mongoid (2.4.12)
|
33
33
|
activemodel (~> 3.1)
|
34
34
|
mongo (<= 1.6.2)
|
35
35
|
tzinfo (~> 0.3.22)
|
data/lib/clerk/logger.rb
CHANGED
data/lib/clerk/version.rb
CHANGED
@@ -69,7 +69,7 @@ describe MongoidDocumentWithClerk do
|
|
69
69
|
context "with default values" do
|
70
70
|
|
71
71
|
it "should call Clerk::Log with the correct params" do
|
72
|
-
|
72
|
+
document_with_clerk.log_items.should_receive(:create!).with(
|
73
73
|
:name => 'James Bond',
|
74
74
|
:place => 'Secret',
|
75
75
|
:message => 'bananas',
|
@@ -83,7 +83,7 @@ describe MongoidDocumentWithClerk do
|
|
83
83
|
context "with overriden status level" do
|
84
84
|
|
85
85
|
it "should call Clerk::Log with the correct params" do
|
86
|
-
|
86
|
+
document_with_clerk.log_items.should_receive(:create!).with(
|
87
87
|
:name => 'James Bond',
|
88
88
|
:place => 'Secret',
|
89
89
|
:message => 'bananas',
|
data/spec/spec_helper.rb
CHANGED