apidae 1.3.7 → 1.3.8
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/apidae_data_parser.rb +1 -1
- data/lib/apidae/version.rb +1 -1
- data/test/dummy/log/development.log +24 -0
- data/test/dummy/log/test.log +754 -0
- data/test/models/apidae/obj_test.rb +10 -3
- metadata +4 -2
@@ -2,8 +2,15 @@ require 'test_helper'
|
|
2
2
|
|
3
3
|
module Apidae
|
4
4
|
class ObjTest < ActiveSupport::TestCase
|
5
|
-
|
6
|
-
|
7
|
-
|
5
|
+
|
6
|
+
test "populate empty booking desc" do
|
7
|
+
objects_json = File.read('test/data/hot_fr_en.json')
|
8
|
+
obj_data = JSON.parse(objects_json, symbolize_names: true).first
|
9
|
+
|
10
|
+
obj = Apidae::Obj.new
|
11
|
+
Apidae::Obj.populate_fields(obj, obj_data, [Apidae::LOCALE_FR])
|
12
|
+
|
13
|
+
assert_nil obj.booking_desc
|
14
|
+
end
|
8
15
|
end
|
9
16
|
end
|
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: 1.3.
|
4
|
+
version: 1.3.8
|
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: 2022-
|
11
|
+
date: 2022-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -247,6 +247,7 @@ files:
|
|
247
247
|
- test/dummy/config/secrets.yml
|
248
248
|
- test/dummy/db/schema.rb
|
249
249
|
- test/dummy/log/development.log
|
250
|
+
- test/dummy/log/test.log
|
250
251
|
- test/dummy/public/404.html
|
251
252
|
- test/dummy/public/422.html
|
252
253
|
- test/dummy/public/500.html
|
@@ -327,6 +328,7 @@ test_files:
|
|
327
328
|
- test/dummy/public/500.html
|
328
329
|
- test/dummy/public/404.html
|
329
330
|
- test/dummy/db/schema.rb
|
331
|
+
- test/dummy/log/test.log
|
330
332
|
- test/dummy/log/development.log
|
331
333
|
- test/dummy/README.rdoc
|
332
334
|
- test/integration/navigation_test.rb
|