apidae 1.3.5 → 1.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,8 +2,15 @@ require 'test_helper'
2
2
 
3
3
  module Apidae
4
4
  class ObjTest < ActiveSupport::TestCase
5
- # test "the truth" do
6
- # assert true
7
- # end
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.5
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: 2021-07-08 00:00:00.000000000 Z
11
+ date: 2022-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -82,7 +82,6 @@ files:
82
82
  - MIT-LICENSE
83
83
  - README.rdoc
84
84
  - Rakefile
85
- - app/assets/config/manifest.js
86
85
  - app/assets/images/apidae/logo-apidae-grey.svg
87
86
  - app/assets/javascripts/apidae/application.js
88
87
  - app/assets/stylesheets/apidae/application.css
@@ -215,6 +214,7 @@ files:
215
214
  - test/data/update_selections.json
216
215
  - test/dummy/README.rdoc
217
216
  - test/dummy/Rakefile
217
+ - test/dummy/app/assets/config/manifest.js
218
218
  - test/dummy/app/assets/javascripts/application.js
219
219
  - test/dummy/app/assets/stylesheets/application.css
220
220
  - test/dummy/app/controllers/application_controller.rb
@@ -286,14 +286,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
286
286
  - !ruby/object:Gem::Version
287
287
  version: '0'
288
288
  requirements: []
289
- rubyforge_project:
290
- rubygems_version: 2.7.6.2
289
+ rubygems_version: 3.1.6
291
290
  signing_key:
292
291
  specification_version: 4
293
292
  summary: A Ruby on Rails engine for projects that involve Apidae data
294
293
  test_files:
295
294
  - test/dummy/app/controllers/application_controller.rb
296
295
  - test/dummy/app/views/layouts/application.html.erb
296
+ - test/dummy/app/assets/config/manifest.js
297
297
  - test/dummy/app/assets/javascripts/application.js
298
298
  - test/dummy/app/assets/stylesheets/application.css
299
299
  - test/dummy/app/helpers/application_helper.rb