controlled_versioning 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MjRhOWQ1Y2VjZTQ5YzI2NmJlZmUyNWQxMGFkMjU2NDYyMzUzZmVlYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MWFkNjNmMjA1M2VhOWQwMzFmNThmN2UxNDBmYWJlZGU2YTQ4YmNkMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YmEyODNiMWNhY2JjYzZhZjNkZTU5ZjU5OTk4ZTdhM2NiZTI1YjZjNTJjYzNi
|
10
|
+
MDdkNTQ4ZGVlY2VlMjE0NzhhMjMxOGY5YjU2ZjliMTZhNWM5Y2ZiNjcwMTUy
|
11
|
+
MGUyODUyNGEyOGZhM2NiN2U4N2I4MjUyMTQzMmYyYTFjMGM5ZDc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODUxMmQwYTFjNzdmYzliMWYzZjk5ZDBjNDNlMTBjMzljMTIwYjcwZTcwZmQ2
|
14
|
+
MGY5ZWY3NjRmMTIzYzUwNmYxMjFjYWU1YWUxYTJmZTVmYzNlYWYxMTUwNWYx
|
15
|
+
MjgwNzdmMGM1OGI1ZDNlZjhlMzVhZmMyMWFhZmQ2NDRjN2ZhZmE=
|
@@ -29,7 +29,7 @@ describe ControlledVersioning::Version do
|
|
29
29
|
|
30
30
|
it 'changed attributes' do
|
31
31
|
version = @resource.submit_revision(r_string: "new string")
|
32
|
-
changed_attribute = version.
|
32
|
+
changed_attribute = version.revisions.attributes.first
|
33
33
|
expect(changed_attribute.name).to eq "r_string"
|
34
34
|
expect(changed_attribute.old_value).to eq "my string"
|
35
35
|
expect(changed_attribute.new_value).to eq "new string"
|
@@ -40,7 +40,7 @@ describe ControlledVersioning::Version do
|
|
40
40
|
version = @resource.submit_revision(child_resources_attributes: [
|
41
41
|
{id: first_child_resource.id, r_string: "new string"}
|
42
42
|
])
|
43
|
-
changed_child = version.
|
43
|
+
changed_child = version.revisions.children.first
|
44
44
|
changed_attribute = changed_child.attributes.first
|
45
45
|
expect(changed_child.name).to eq "child_resources"
|
46
46
|
expect(changed_attribute.name).to eq "r_string"
|
@@ -57,7 +57,7 @@ describe ControlledVersioning::Version do
|
|
57
57
|
{id: first_grand_child_resource.id, r_string: "new string"}
|
58
58
|
]}
|
59
59
|
])
|
60
|
-
changed_child = version.
|
60
|
+
changed_child = version.revisions.children.first
|
61
61
|
changed_grand_child = changed_child.children.first
|
62
62
|
changed_attribute = changed_grand_child.attributes.first
|
63
63
|
expect(changed_grand_child.name).to eq "grand_child_resources"
|
@@ -70,7 +70,7 @@ describe ControlledVersioning::Version do
|
|
70
70
|
version = @resource.submit_revision(child_resources_attributes: [
|
71
71
|
{r_float: 3.14}
|
72
72
|
])
|
73
|
-
changed_child = version.
|
73
|
+
changed_child = version.revisions.children.first
|
74
74
|
changed_attribute = changed_child.attributes.first
|
75
75
|
expect(changed_child.new?).to be_true
|
76
76
|
expect(changed_attribute.name).to eq "r_float"
|
@@ -83,7 +83,7 @@ describe ControlledVersioning::Version do
|
|
83
83
|
version = @resource.submit_revision(child_resources_attributes: [
|
84
84
|
{id: first_child_resource.id, _destroy: true}
|
85
85
|
])
|
86
|
-
changed_child = version.
|
86
|
+
changed_child = version.revisions.children.first
|
87
87
|
expect(changed_child.marked_for_removal?).to be_true
|
88
88
|
end
|
89
89
|
end
|