forest_liana 1.6.12 → 1.6.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/forest_liana/resources_controller.rb +4 -4
- data/app/deserializers/forest_liana/resource_deserializer.rb +3 -1
- data/lib/forest_liana/bootstraper.rb +8 -1
- data/lib/forest_liana/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +4049 -0
- data/test/services/forest_liana/resource_updater_test.rb +18 -0
- metadata +2 -2
@@ -24,6 +24,24 @@ module ForestLiana
|
|
24
24
|
updater = ResourceUpdater.new(SerializeField, params)
|
25
25
|
updater.perform
|
26
26
|
|
27
|
+
assert updater.record.valid?
|
28
|
+
assert updater.record.field == "value 1"
|
29
|
+
end
|
30
|
+
|
31
|
+
test 'Update a record on a "serialize" attribute with a null value' do
|
32
|
+
params = ActionController::Parameters.new(
|
33
|
+
id: 1,
|
34
|
+
data: {
|
35
|
+
id: 1,
|
36
|
+
type: "serialize_field",
|
37
|
+
attributes: {
|
38
|
+
field: nil
|
39
|
+
}
|
40
|
+
}
|
41
|
+
)
|
42
|
+
updater = ResourceUpdater.new(SerializeField, params)
|
43
|
+
updater.perform
|
44
|
+
|
27
45
|
assert updater.record.valid?
|
28
46
|
assert updater.record.field == []
|
29
47
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: forest_liana
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sandro Munda
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|