apidae 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/apidae/obj.rb +22 -14
- data/config/initializers/constants.rb +2 -0
- data/db/migrate/20190127210921_migrate_localized_apidae_obj_fields.rb +1 -0
- data/lib/apidae/version.rb +1 -1
- data/test/data/equ_groups.json +16 -4
- data/test/dummy/log/test.log +1534 -0
- data/test/models/apidae/file_import_test.rb +13 -0
- metadata +4 -2
@@ -111,6 +111,19 @@ module Apidae
|
|
111
111
|
assert_nil root_obj.long_desc
|
112
112
|
end
|
113
113
|
|
114
|
+
test "non-localized versioned prestations fields override" do
|
115
|
+
objects_json = File.read('test/data/equ_groups.json')
|
116
|
+
FileImport.add_or_update_objects(objects_json, @result, [], [GROUPS_VERSION])
|
117
|
+
assert_equal 1, Obj.count
|
118
|
+
assert_equal 2, Obj.unscoped.count
|
119
|
+
root_obj = Obj.find_by_apidae_id(185789)
|
120
|
+
assert_equal 64, root_obj.capacity['group_max']
|
121
|
+
assert_equal 6, root_obj.equipments.length
|
122
|
+
root_obj.obj_version = GROUPS_VERSION
|
123
|
+
assert_equal 72, root_obj.capacity['group_max']
|
124
|
+
assert_equal 1, root_obj.equipments.length
|
125
|
+
end
|
126
|
+
|
114
127
|
test "new selection insertion" do
|
115
128
|
Obj.create(apidae_id: 504, title: 'Société des contrebassistes aixois')
|
116
129
|
objects_json = File.read('test/data/selections.json')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apidae
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jean-Baptiste Vilain
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -230,6 +230,7 @@ files:
|
|
230
230
|
- test/dummy/config/secrets.yml
|
231
231
|
- test/dummy/db/schema.rb
|
232
232
|
- test/dummy/log/development.log
|
233
|
+
- test/dummy/log/test.log
|
233
234
|
- test/dummy/public/404.html
|
234
235
|
- test/dummy/public/422.html
|
235
236
|
- test/dummy/public/500.html
|
@@ -310,6 +311,7 @@ test_files:
|
|
310
311
|
- test/dummy/public/500.html
|
311
312
|
- test/dummy/public/404.html
|
312
313
|
- test/dummy/db/schema.rb
|
314
|
+
- test/dummy/log/test.log
|
313
315
|
- test/dummy/log/development.log
|
314
316
|
- test/dummy/README.rdoc
|
315
317
|
- test/integration/navigation_test.rb
|