espinita 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/espinita/auditor_behavior.rb +1 -1
- data/lib/espinita/version.rb +1 -1
- data/spec/dummy/log/test.log +1608 -0
- data/spec/models/models/general_model_spec.rb +8 -0
- metadata +1 -1
@@ -54,6 +54,8 @@ describe GeneralModel do
|
|
54
54
|
it "model should be associated" do
|
55
55
|
expect(updated_model.audits).to have(2).audits
|
56
56
|
end
|
57
|
+
|
58
|
+
|
57
59
|
end
|
58
60
|
|
59
61
|
describe "update model with exclusion key" do
|
@@ -81,6 +83,12 @@ describe GeneralModel do
|
|
81
83
|
expect(updated_model.audits).to have(1).audits
|
82
84
|
expect(updated_model.audits.first.audited_changes.keys).to_not include("name")
|
83
85
|
end
|
86
|
+
|
87
|
+
it "model should have an array of 2 values on audited changes " do
|
88
|
+
updated_model.audits.last.audited_changes.keys.each do |key|
|
89
|
+
expect(updated_model.audits.last.audited_changes[key.to_sym].size).to eql(2)
|
90
|
+
end
|
91
|
+
end
|
84
92
|
end
|
85
93
|
|
86
94
|
describe "update with audit comment" do
|