espinita 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: espinita
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Michelson