forest_liana 1.0.0.beta5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. data/LICENSE +675 -0
  2. data/README.rdoc +1 -0
  3. data/Rakefile +37 -0
  4. data/app/assets/javascripts/forest_liana/application.js +13 -0
  5. data/app/assets/stylesheets/forest_liana/application.css +15 -0
  6. data/app/assets/stylesheets/scaffold.css +56 -0
  7. data/app/controllers/forest_liana/apimaps_controller.rb +18 -0
  8. data/app/controllers/forest_liana/application_controller.rb +30 -0
  9. data/app/controllers/forest_liana/resources_controller.rb +62 -0
  10. data/app/deserializers/forest_liana/resource_deserializer.rb +41 -0
  11. data/app/helpers/forest_liana/application_helper.rb +4 -0
  12. data/app/models/forest_liana/collection.rb +26 -0
  13. data/app/serializers/forest_liana/apimap_serializer.rb +10 -0
  14. data/app/serializers/forest_liana/serializer_factory.rb +88 -0
  15. data/app/services/forest_liana/resource_getter.rb +15 -0
  16. data/app/services/forest_liana/resources_getter.rb +101 -0
  17. data/app/services/forest_liana/schema_adapter.rb +118 -0
  18. data/app/services/forest_liana/schema_utils.rb +28 -0
  19. data/app/services/forest_liana/search_query_builder.rb +70 -0
  20. data/app/views/layouts/forest_liana/application.html.erb +14 -0
  21. data/config/initializers/mimetype.rb +1 -0
  22. data/config/routes.rb +9 -0
  23. data/lib/forest_liana.rb +5 -0
  24. data/lib/forest_liana/engine.rb +30 -0
  25. data/lib/forest_liana/version.rb +3 -0
  26. data/lib/generators/forest_liana/install_generator.rb +15 -0
  27. data/lib/tasks/forest_tasks.rake +4 -0
  28. data/test/dummy/README.rdoc +28 -0
  29. data/test/dummy/Rakefile +6 -0
  30. data/test/dummy/app/assets/javascripts/application.js +13 -0
  31. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  32. data/test/dummy/app/controllers/application_controller.rb +5 -0
  33. data/test/dummy/app/helpers/application_helper.rb +2 -0
  34. data/test/dummy/app/models/belongs_to_class_name_field.rb +3 -0
  35. data/test/dummy/app/models/belongs_to_field.rb +3 -0
  36. data/test/dummy/app/models/boolean_field.rb +2 -0
  37. data/test/dummy/app/models/date_field.rb +2 -0
  38. data/test/dummy/app/models/decimal_field.rb +2 -0
  39. data/test/dummy/app/models/float_field.rb +2 -0
  40. data/test/dummy/app/models/has_and_belongs_to_many_field.rb +3 -0
  41. data/test/dummy/app/models/has_many_class_name_field.rb +3 -0
  42. data/test/dummy/app/models/has_many_field.rb +3 -0
  43. data/test/dummy/app/models/has_one_field.rb +3 -0
  44. data/test/dummy/app/models/integer_field.rb +2 -0
  45. data/test/dummy/app/models/polymorphic_field.rb +3 -0
  46. data/test/dummy/app/models/string_field.rb +2 -0
  47. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  48. data/test/dummy/bin/bundle +3 -0
  49. data/test/dummy/bin/rails +4 -0
  50. data/test/dummy/bin/rake +4 -0
  51. data/test/dummy/bin/setup +29 -0
  52. data/test/dummy/config.ru +4 -0
  53. data/test/dummy/config/application.rb +26 -0
  54. data/test/dummy/config/boot.rb +5 -0
  55. data/test/dummy/config/database.yml +25 -0
  56. data/test/dummy/config/environment.rb +5 -0
  57. data/test/dummy/config/environments/development.rb +41 -0
  58. data/test/dummy/config/environments/production.rb +79 -0
  59. data/test/dummy/config/environments/test.rb +42 -0
  60. data/test/dummy/config/initializers/assets.rb +11 -0
  61. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  62. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  63. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  64. data/test/dummy/config/initializers/inflections.rb +16 -0
  65. data/test/dummy/config/initializers/mime_types.rb +4 -0
  66. data/test/dummy/config/initializers/session_store.rb +3 -0
  67. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  68. data/test/dummy/config/locales/en.yml +23 -0
  69. data/test/dummy/config/routes.rb +4 -0
  70. data/test/dummy/config/secrets.yml +22 -0
  71. data/test/dummy/db/development.sqlite3 +0 -0
  72. data/test/dummy/db/migrate/20150608130516_create_date_field.rb +7 -0
  73. data/test/dummy/db/migrate/20150608131430_create_integer_field.rb +7 -0
  74. data/test/dummy/db/migrate/20150608131603_create_decimal_field.rb +7 -0
  75. data/test/dummy/db/migrate/20150608131610_create_float_field.rb +7 -0
  76. data/test/dummy/db/migrate/20150608132159_create_boolean_field.rb +7 -0
  77. data/test/dummy/db/migrate/20150608132621_create_string_field.rb +7 -0
  78. data/test/dummy/db/migrate/20150608133038_create_belongs_to_field.rb +7 -0
  79. data/test/dummy/db/migrate/20150608133044_create_has_one_field.rb +6 -0
  80. data/test/dummy/db/migrate/20150608150016_create_has_many_field.rb +6 -0
  81. data/test/dummy/db/migrate/20150609114636_create_belongs_to_class_name_field.rb +7 -0
  82. data/test/dummy/db/migrate/20150612112520_create_has_and_belongs_to_many_field.rb +6 -0
  83. data/test/dummy/db/migrate/20150616150629_create_polymorphic_field.rb +7 -0
  84. data/test/dummy/db/migrate/20150623115554_create_has_many_class_name_field.rb +6 -0
  85. data/test/dummy/db/schema.rb +70 -0
  86. data/test/dummy/db/test.sqlite3 +0 -0
  87. data/test/dummy/log/test.log +395 -0
  88. data/test/dummy/public/404.html +67 -0
  89. data/test/dummy/public/422.html +67 -0
  90. data/test/dummy/public/500.html +66 -0
  91. data/test/dummy/public/favicon.ico +0 -0
  92. data/test/forest_liana_test.rb +7 -0
  93. data/test/integration/navigation_test.rb +10 -0
  94. data/test/services/forest_liana/schema_adapter_test.rb +87 -0
  95. data/test/test_helper.rb +20 -0
  96. metadata +274 -0
Binary file
@@ -0,0 +1,7 @@
1
+ class CreateDateField < ActiveRecord::Migration
2
+ def change
3
+ create_table :date_fields do |t|
4
+ t.date :field
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ class CreateIntegerField < ActiveRecord::Migration
2
+ def change
3
+ create_table :integer_fields do |t|
4
+ t.integer :field
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ class CreateDecimalField < ActiveRecord::Migration
2
+ def change
3
+ create_table :decimal_fields do |t|
4
+ t.decimal :field
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ class CreateFloatField < ActiveRecord::Migration
2
+ def change
3
+ create_table :float_fields do |t|
4
+ t.float :field
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ class CreateBooleanField < ActiveRecord::Migration
2
+ def change
3
+ create_table :boolean_fields do |t|
4
+ t.boolean :field
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ class CreateStringField < ActiveRecord::Migration
2
+ def change
3
+ create_table :string_fields do |t|
4
+ t.string :field
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ class CreateBelongsToField < ActiveRecord::Migration
2
+ def change
3
+ create_table :belongs_to_fields do |t|
4
+ t.references :has_one_field, index: true
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,6 @@
1
+ class CreateHasOneField < ActiveRecord::Migration
2
+ def change
3
+ create_table :has_one_fields do |t|
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,6 @@
1
+ class CreateHasManyField < ActiveRecord::Migration
2
+ def change
3
+ create_table :has_many_fields do |t|
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,7 @@
1
+ class CreateBelongsToClassNameField < ActiveRecord::Migration
2
+ def change
3
+ create_table :belongs_to_class_name_fields do |t|
4
+ t.references :foo, index: true
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,6 @@
1
+ class CreateHasAndBelongsToManyField < ActiveRecord::Migration
2
+ def change
3
+ create_table :has_and_belongs_to_many_fields do |t|
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,7 @@
1
+ class CreatePolymorphicField < ActiveRecord::Migration
2
+ def change
3
+ create_table :polymorphic_fields do |t|
4
+ t.references :has_one_field, index: true
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,6 @@
1
+ class CreateHasManyClassNameField < ActiveRecord::Migration
2
+ def change
3
+ create_table :has_many_class_name_fields do |t|
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,70 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20150623115554) do
15
+
16
+ create_table "belongs_to_class_name_fields", force: :cascade do |t|
17
+ t.integer "foo_id"
18
+ end
19
+
20
+ add_index "belongs_to_class_name_fields", ["foo_id"], name: "index_belongs_to_class_name_fields_on_foo_id"
21
+
22
+ create_table "belongs_to_fields", force: :cascade do |t|
23
+ t.integer "has_one_field_id"
24
+ end
25
+
26
+ add_index "belongs_to_fields", ["has_one_field_id"], name: "index_belongs_to_fields_on_has_one_field_id"
27
+
28
+ create_table "boolean_fields", force: :cascade do |t|
29
+ t.boolean "field"
30
+ end
31
+
32
+ create_table "date_fields", force: :cascade do |t|
33
+ t.date "field"
34
+ end
35
+
36
+ create_table "decimal_fields", force: :cascade do |t|
37
+ t.decimal "field"
38
+ end
39
+
40
+ create_table "float_fields", force: :cascade do |t|
41
+ t.float "field"
42
+ end
43
+
44
+ create_table "has_and_belongs_to_many_fields", force: :cascade do |t|
45
+ end
46
+
47
+ create_table "has_many_class_name_fields", force: :cascade do |t|
48
+ end
49
+
50
+ create_table "has_many_fields", force: :cascade do |t|
51
+ end
52
+
53
+ create_table "has_one_fields", force: :cascade do |t|
54
+ end
55
+
56
+ create_table "integer_fields", force: :cascade do |t|
57
+ t.integer "field"
58
+ end
59
+
60
+ create_table "polymorphic_fields", force: :cascade do |t|
61
+ t.integer "has_one_field_id"
62
+ end
63
+
64
+ add_index "polymorphic_fields", ["has_one_field_id"], name: "index_polymorphic_fields_on_has_one_field_id"
65
+
66
+ create_table "string_fields", force: :cascade do |t|
67
+ t.string "field"
68
+ end
69
+
70
+ end
Binary file
@@ -0,0 +1,395 @@
1
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2
+  (0.1ms) begin transaction
3
+ ---------------------------------------------------------------------------------
4
+ ForestLiana::SerializerFactoryTest: test_has_many_should_be_serialize_to_has_many
5
+ ---------------------------------------------------------------------------------
6
+  (0.0ms) rollback transaction
7
+  (0.0ms) begin transaction
8
+ ----------------------------------------------------------------------------------
9
+ ForestLiana::SerializerFactoryTest: test_belongs_to_should_be_serialize_to_has_one
10
+ ----------------------------------------------------------------------------------
11
+  (0.1ms) rollback transaction
12
+  (0.0ms) begin transaction
13
+ ------------------------------------------------------------------------------------------------
14
+ ForestLiana::SerializerFactoryTest: test_has_and_belongs_to_many_should_be_serialize_to_has_many
15
+ ------------------------------------------------------------------------------------------------
16
+  (0.0ms) rollback transaction
17
+  (0.1ms) begin transaction
18
+ -------------------------------------------------------------------------------
19
+ ForestLiana::SerializerFactoryTest: test_has_one_should_be_serialize_to_has_one
20
+ -------------------------------------------------------------------------------
21
+  (0.0ms) rollback transaction
22
+  (0.0ms) begin transaction
23
+ ---------------------------------------------------------------------------------
24
+ ForestLiana::SerializerFactoryTest: test_Fields_should_be_serialize_as_attributes
25
+ ---------------------------------------------------------------------------------
26
+  (0.0ms) rollback transaction
27
+  (0.0ms) begin transaction
28
+ -------------------------------------------------------------------------------------
29
+ ForestLiana::ResourceDeserializerTest: test_JSONAPI_payload_should_extract_attributes
30
+ -------------------------------------------------------------------------------------
31
+  (0.0ms) rollback transaction
32
+  (0.0ms) begin transaction
33
+ ----------------------------------------------------------------------------------------
34
+ ForestLiana::ResourceDeserializerTest: test_JSONAPI_payload_should_support_relationships
35
+ ----------------------------------------------------------------------------------------
36
+  (0.0ms) rollback transaction
37
+  (0.1ms) begin transaction
38
+ ---------------------------
39
+ ForestLianaTest: test_truth
40
+ ---------------------------
41
+  (0.0ms) rollback transaction
42
+  (0.0ms) begin transaction
43
+ ----------------------------------------------------------------------------------
44
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
45
+ ----------------------------------------------------------------------------------
46
+  (0.1ms) rollback transaction
47
+  (0.1ms) begin transaction
48
+ ---------------------------------------------------------------------------
49
+ ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
50
+ ---------------------------------------------------------------------------
51
+  (0.1ms) rollback transaction
52
+  (0.1ms) begin transaction
53
+ --------------------------------------------------------------------------
54
+ ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
55
+ --------------------------------------------------------------------------
56
+  (0.0ms) rollback transaction
57
+  (0.0ms) begin transaction
58
+ ---------------------------------------------------------
59
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationship
60
+ ---------------------------------------------------------
61
+  (0.0ms) rollback transaction
62
+  (0.0ms) begin transaction
63
+ -------------------------------------------------------------------------
64
+ ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
65
+ -------------------------------------------------------------------------
66
+  (0.0ms) rollback transaction
67
+  (0.0ms) begin transaction
68
+ ------------------------------------------------------------------------------------
69
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
70
+ ------------------------------------------------------------------------------------
71
+  (0.1ms) rollback transaction
72
+  (0.0ms) begin transaction
73
+ ------------------------------------------------------------------------
74
+ ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
75
+ ------------------------------------------------------------------------
76
+  (0.0ms) rollback transaction
77
+  (0.1ms) begin transaction
78
+ -------------------------------------------------------------------------
79
+ ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
80
+ -------------------------------------------------------------------------
81
+  (0.0ms) rollback transaction
82
+  (0.0ms) begin transaction
83
+ ---------------------------------------------------------------------
84
+ ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
85
+ ---------------------------------------------------------------------
86
+  (0.0ms) rollback transaction
87
+  (0.0ms) begin transaction
88
+ --------------------------------------------------------
89
+ ForestLiana::SchemaAdapterTest: test_hasOne_relationship
90
+ --------------------------------------------------------
91
+  (0.0ms) rollback transaction
92
+  (0.0ms) begin transaction
93
+ -----------------------------------------------------------
94
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
95
+ -----------------------------------------------------------
96
+  (0.0ms) rollback transaction
97
+  (0.0ms) begin transaction
98
+ --------------------------------------------------------------------------
99
+ ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
100
+ --------------------------------------------------------------------------
101
+  (0.0ms) rollback transaction
102
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
103
+  (0.1ms) begin transaction
104
+ --------------------------------------------------------------------------
105
+ ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
106
+ --------------------------------------------------------------------------
107
+  (0.1ms) rollback transaction
108
+  (0.1ms) begin transaction
109
+ -------------------------------------------------------------------------
110
+ ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
111
+ -------------------------------------------------------------------------
112
+  (0.0ms) rollback transaction
113
+  (0.1ms) begin transaction
114
+ --------------------------------------------------------------------------
115
+ ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
116
+ --------------------------------------------------------------------------
117
+  (0.0ms) rollback transaction
118
+  (0.0ms) begin transaction
119
+ ----------------------------------------------------------------------------------
120
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
121
+ ----------------------------------------------------------------------------------
122
+  (0.0ms) rollback transaction
123
+  (0.1ms) begin transaction
124
+ -----------------------------------------------------------
125
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
126
+ -----------------------------------------------------------
127
+  (0.1ms) rollback transaction
128
+  (0.0ms) begin transaction
129
+ ---------------------------------------------------------------------
130
+ ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
131
+ ---------------------------------------------------------------------
132
+  (0.0ms) rollback transaction
133
+  (0.0ms) begin transaction
134
+ ---------------------------------------------------------------------------
135
+ ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
136
+ ---------------------------------------------------------------------------
137
+  (0.1ms) rollback transaction
138
+  (0.0ms) begin transaction
139
+ --------------------------------------------------------
140
+ ForestLiana::SchemaAdapterTest: test_hasOne_relationship
141
+ --------------------------------------------------------
142
+  (0.0ms) rollback transaction
143
+  (0.1ms) begin transaction
144
+ -------------------------------------------------------------------------
145
+ ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
146
+ -------------------------------------------------------------------------
147
+  (0.0ms) rollback transaction
148
+  (0.0ms) begin transaction
149
+ ------------------------------------------------------------------------------------
150
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
151
+ ------------------------------------------------------------------------------------
152
+  (0.1ms) rollback transaction
153
+  (0.1ms) begin transaction
154
+ ---------------------------------------------------------
155
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationship
156
+ ---------------------------------------------------------
157
+  (0.0ms) rollback transaction
158
+  (0.0ms) begin transaction
159
+ ------------------------------------------------------------------------
160
+ ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
161
+ ------------------------------------------------------------------------
162
+  (0.1ms) rollback transaction
163
+  (0.0ms) begin transaction
164
+ -------------------------------------------------------------------------------------
165
+ ForestLiana::ResourceDeserializerTest: test_JSONAPI_payload_should_extract_attributes
166
+ -------------------------------------------------------------------------------------
167
+  (0.0ms) rollback transaction
168
+  (0.1ms) begin transaction
169
+ ----------------------------------------------------------------------------------------
170
+ ForestLiana::ResourceDeserializerTest: test_JSONAPI_payload_should_support_relationships
171
+ ----------------------------------------------------------------------------------------
172
+  (0.0ms) rollback transaction
173
+  (0.0ms) begin transaction
174
+ ---------------------------
175
+ ForestLianaTest: test_truth
176
+ ---------------------------
177
+  (0.0ms) rollback transaction
178
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
179
+  (0.1ms) begin transaction
180
+ ---------------------------
181
+ ForestLianaTest: test_truth
182
+ ---------------------------
183
+  (0.0ms) rollback transaction
184
+  (0.0ms) begin transaction
185
+ -------------------------------------------------------------------------------------
186
+ ForestLiana::ResourceDeserializerTest: test_JSONAPI_payload_should_extract_attributes
187
+ -------------------------------------------------------------------------------------
188
+  (0.1ms) rollback transaction
189
+  (0.1ms) begin transaction
190
+ ----------------------------------------------------------------------------------------
191
+ ForestLiana::ResourceDeserializerTest: test_JSONAPI_payload_should_support_relationships
192
+ ----------------------------------------------------------------------------------------
193
+  (0.1ms) rollback transaction
194
+  (0.0ms) begin transaction
195
+ ------------------------------------------------------------------------------------
196
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
197
+ ------------------------------------------------------------------------------------
198
+  (0.1ms) rollback transaction
199
+  (0.1ms) begin transaction
200
+ ----------------------------------------------------------------------------------
201
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
202
+ ----------------------------------------------------------------------------------
203
+  (0.0ms) rollback transaction
204
+  (0.1ms) begin transaction
205
+ -------------------------------------------------------------------------
206
+ ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
207
+ -------------------------------------------------------------------------
208
+  (0.0ms) rollback transaction
209
+  (0.1ms) begin transaction
210
+ -----------------------------------------------------------
211
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
212
+ -----------------------------------------------------------
213
+  (0.1ms) rollback transaction
214
+  (0.1ms) begin transaction
215
+ ------------------------------------------------------------------------
216
+ ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
217
+ ------------------------------------------------------------------------
218
+  (0.1ms) rollback transaction
219
+  (0.1ms) begin transaction
220
+ --------------------------------------------------------------------------
221
+ ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
222
+ --------------------------------------------------------------------------
223
+  (0.1ms) rollback transaction
224
+  (0.1ms) begin transaction
225
+ ---------------------------------------------------------------------------
226
+ ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
227
+ ---------------------------------------------------------------------------
228
+  (0.0ms) rollback transaction
229
+  (0.1ms) begin transaction
230
+ -------------------------------------------------------------------------
231
+ ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
232
+ -------------------------------------------------------------------------
233
+  (0.1ms) rollback transaction
234
+  (0.1ms) begin transaction
235
+ --------------------------------------------------------------------------
236
+ ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
237
+ --------------------------------------------------------------------------
238
+  (0.1ms) rollback transaction
239
+  (0.1ms) begin transaction
240
+ ---------------------------------------------------------------------
241
+ ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
242
+ ---------------------------------------------------------------------
243
+  (0.0ms) rollback transaction
244
+  (0.1ms) begin transaction
245
+ ---------------------------------------------------------
246
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationship
247
+ ---------------------------------------------------------
248
+  (0.0ms) rollback transaction
249
+  (0.0ms) begin transaction
250
+ --------------------------------------------------------
251
+ ForestLiana::SchemaAdapterTest: test_hasOne_relationship
252
+ --------------------------------------------------------
253
+  (0.0ms) rollback transaction
254
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
255
+  (0.1ms) begin transaction
256
+ ---------------------------------------------------------
257
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationship
258
+ ---------------------------------------------------------
259
+  (0.1ms) rollback transaction
260
+  (0.0ms) begin transaction
261
+ -------------------------------------------------------------------------
262
+ ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
263
+ -------------------------------------------------------------------------
264
+  (0.0ms) rollback transaction
265
+  (0.1ms) begin transaction
266
+ --------------------------------------------------------------------------
267
+ ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
268
+ --------------------------------------------------------------------------
269
+  (0.0ms) rollback transaction
270
+  (0.0ms) begin transaction
271
+ --------------------------------------------------------
272
+ ForestLiana::SchemaAdapterTest: test_hasOne_relationship
273
+ --------------------------------------------------------
274
+  (0.1ms) rollback transaction
275
+  (0.0ms) begin transaction
276
+ ------------------------------------------------------------------------
277
+ ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
278
+ ------------------------------------------------------------------------
279
+  (0.1ms) rollback transaction
280
+  (0.0ms) begin transaction
281
+ ------------------------------------------------------------------------------------
282
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
283
+ ------------------------------------------------------------------------------------
284
+  (0.0ms) rollback transaction
285
+  (0.0ms) begin transaction
286
+ ---------------------------------------------------------------------------
287
+ ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
288
+ ---------------------------------------------------------------------------
289
+  (0.0ms) rollback transaction
290
+  (0.1ms) begin transaction
291
+ -----------------------------------------------------------
292
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
293
+ -----------------------------------------------------------
294
+  (0.0ms) rollback transaction
295
+  (0.1ms) begin transaction
296
+ -------------------------------------------------------------------------
297
+ ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
298
+ -------------------------------------------------------------------------
299
+  (0.0ms) rollback transaction
300
+  (0.1ms) begin transaction
301
+ ----------------------------------------------------------------------------------
302
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
303
+ ----------------------------------------------------------------------------------
304
+  (0.6ms) rollback transaction
305
+  (0.1ms) begin transaction
306
+ --------------------------------------------------------------------------
307
+ ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
308
+ --------------------------------------------------------------------------
309
+  (0.2ms) rollback transaction
310
+  (0.2ms) begin transaction
311
+ ---------------------------------------------------------------------
312
+ ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
313
+ ---------------------------------------------------------------------
314
+  (0.1ms) rollback transaction
315
+  (0.1ms) begin transaction
316
+ ---------------------------
317
+ ForestLianaTest: test_truth
318
+ ---------------------------
319
+  (0.0ms) rollback transaction
320
+  (0.1ms) begin transaction
321
+ ----------------------------------------------------------------------------------------
322
+ ForestLiana::ResourceDeserializerTest: test_JSONAPI_payload_should_support_relationships
323
+ ----------------------------------------------------------------------------------------
324
+  (0.1ms) rollback transaction
325
+  (0.1ms) begin transaction
326
+ -------------------------------------------------------------------------------------
327
+ ForestLiana::ResourceDeserializerTest: test_JSONAPI_payload_should_extract_attributes
328
+ -------------------------------------------------------------------------------------
329
+  (0.1ms) rollback transaction
330
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
331
+  (0.1ms) begin transaction
332
+ ---------------------------------------------------------------------------
333
+ ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
334
+ ---------------------------------------------------------------------------
335
+  (0.1ms) rollback transaction
336
+  (0.0ms) begin transaction
337
+ ---------------------------------------------------------------------
338
+ ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
339
+ ---------------------------------------------------------------------
340
+  (0.0ms) rollback transaction
341
+  (0.0ms) begin transaction
342
+ ---------------------------------------------------------
343
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationship
344
+ ---------------------------------------------------------
345
+  (0.8ms) rollback transaction
346
+  (0.1ms) begin transaction
347
+ ------------------------------------------------------------------------
348
+ ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
349
+ ------------------------------------------------------------------------
350
+  (0.0ms) rollback transaction
351
+  (0.1ms) begin transaction
352
+ -------------------------------------------------------------------------
353
+ ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
354
+ -------------------------------------------------------------------------
355
+  (0.1ms) rollback transaction
356
+  (0.1ms) begin transaction
357
+ --------------------------------------------------------
358
+ ForestLiana::SchemaAdapterTest: test_hasOne_relationship
359
+ --------------------------------------------------------
360
+  (0.1ms) rollback transaction
361
+  (0.1ms) begin transaction
362
+ -----------------------------------------------------------
363
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
364
+ -----------------------------------------------------------
365
+  (0.0ms) rollback transaction
366
+  (0.1ms) begin transaction
367
+ ------------------------------------------------------------------------------------
368
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
369
+ ------------------------------------------------------------------------------------
370
+  (0.1ms) rollback transaction
371
+  (0.1ms) begin transaction
372
+ --------------------------------------------------------------------------
373
+ ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
374
+ --------------------------------------------------------------------------
375
+  (0.2ms) rollback transaction
376
+  (0.1ms) begin transaction
377
+ ----------------------------------------------------------------------------------
378
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
379
+ ----------------------------------------------------------------------------------
380
+  (0.2ms) rollback transaction
381
+  (0.2ms) begin transaction
382
+ -------------------------------------------------------------------------
383
+ ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
384
+ -------------------------------------------------------------------------
385
+  (0.1ms) rollback transaction
386
+  (0.1ms) begin transaction
387
+ --------------------------------------------------------------------------
388
+ ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
389
+ --------------------------------------------------------------------------
390
+  (0.1ms) rollback transaction
391
+  (0.1ms) begin transaction
392
+ ---------------------------
393
+ ForestLianaTest: test_truth
394
+ ---------------------------
395
+  (0.1ms) rollback transaction