forest_liana 1.0.0.beta7 → 1.0.0.pre.beta.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e2f8f33fb7c03aacfd3f0cd4d415bcff74603d8d
4
- data.tar.gz: 702cfbb40004f92e5c8811a53958fbafe2bb6af3
3
+ metadata.gz: 16861dd6d242cdecc96ac42cb8fab520733de0bc
4
+ data.tar.gz: df978d7c4b3cf406df199b505f921a292a6547aa
5
5
  SHA512:
6
- metadata.gz: a5cd8cc0bb54b699a33d3de3f65820defa82e336f9371047b4828c7c7eb6e4bf9c3eea111f4c340eea065e8beda0a7d1501ca167e31d02e3836e2a763056089b
7
- data.tar.gz: c43973a033178999723cfffa21d59a2cfab062e63f029e36a6a8210e0391016a4fb286a5c0ab1636778b570ffc374c6805fd045f1bbbae6bfa5eff039283817a
6
+ metadata.gz: 0937c17604b57f0322ea6de6b3e40e225ed01c71d333dd295c6682540e1e82b63efccb656af2890714dde69cdfe7801dc25fef36f707a1f337394f5e31fc9d9d
7
+ data.tar.gz: 055a857986359b2d69bb4886290956edd8e710bafec46421b47151f3ae8ca16d410accbb6e19ce80244b7f4e4efea59ab99ea9eff3535c078e13d5dcdf49ae7f
@@ -5,14 +5,16 @@ module ForestLiana
5
5
  def index
6
6
  result = []
7
7
 
8
- SchemaUtils.tables_names.map do |table_name|
9
- model = SchemaUtils.find_model_from_table_name(table_name)
10
- result << SchemaAdapter.new(model).perform if model.try(:table_exists?)
8
+ ActiveRecord::Base.connection.tables.map do |model_name|
9
+ begin
10
+ model = model_name.classify.constantize
11
+ result << SchemaAdapter.new(model).perform
12
+ rescue => error
13
+ puts error.inspect
14
+ end
11
15
  end
12
16
 
13
17
  render json: serialize_models(result, serializer: ApimapSerializer)
14
18
  end
15
-
16
-
17
19
  end
18
20
  end
@@ -22,7 +22,7 @@ module ForestLiana
22
22
  end
23
23
 
24
24
  def authenticate_user_from_jwt
25
- JWT.decode request.headers['Authorization'].split[1],
25
+ JWT.decode request.headers[:Authorization].split[1],
26
26
  ForestLiana.jwt_signing_key
27
27
  end
28
28
 
@@ -2,6 +2,7 @@ module ForestLiana
2
2
  class ResourcesController < ForestLiana::ApplicationController
3
3
 
4
4
  before_filter :find_resource
5
+ before_filter :define_serializers
5
6
 
6
7
  def index
7
8
  getter = ResourcesGetter.new(@resource, params)
@@ -40,13 +41,24 @@ module ForestLiana
40
41
  private
41
42
 
42
43
  def find_resource
43
- @resource = SchemaUtils.find_model_from_table_name(params[:resource])
44
+ @resource_plural_name = params[:resource]
45
+ @resource_singular_name = @resource_plural_name.singularize
46
+ @resource_class_name = @resource_singular_name.classify
47
+
48
+ begin
49
+ @resource = @resource_class_name.constantize
50
+ rescue
51
+ end
44
52
 
45
53
  if @resource.nil? || !@resource.ancestors.include?(ActiveRecord::Base)
46
54
  render json: {status: 404}, status: :not_found
47
55
  end
48
56
  end
49
57
 
58
+ def define_serializers
59
+ @serializer = SerializerFactory.new.serializer_for(@resource)
60
+ end
61
+
50
62
  def resource_params
51
63
  ResourceDeserializer.new(@resource, params).perform
52
64
  end
@@ -2,27 +2,6 @@ require 'jsonapi-serializers'
2
2
 
3
3
  module ForestLiana
4
4
  class SerializerFactory
5
-
6
- def self.define_serializer(active_record_class, serializer)
7
- class_name = active_record_class.table_name.classify
8
- module_name = class_name.deconstantize
9
-
10
- name = module_name if module_name
11
- name += class_name.demodulize
12
-
13
- ForestLiana.const_set("#{name}Serializer", serializer)
14
- end
15
-
16
- def self.get_serializer_name(active_record_class)
17
- class_name = active_record_class.table_name.classify
18
- module_name = class_name.deconstantize
19
-
20
- name = module_name if module_name
21
- name += class_name.demodulize
22
-
23
- "ForestLiana::#{name}Serializer"
24
- end
25
-
26
5
  def serializer_for(active_record_class)
27
6
  serializer = Class.new {
28
7
  include JSONAPI::Serializer
@@ -61,12 +40,13 @@ module ForestLiana
61
40
  serializer.attribute(attr)
62
41
  end
63
42
 
64
- SchemaUtils.associations(active_record_class).each do |a|
65
- serializer.send(serializer_association(a), a.name)
43
+ associations(active_record_class).each do |association|
44
+ # ignore polymorphic associations for now
45
+ next if association.options[:polymorphic]
46
+ serializer.send(serializer_association(association), association.name)
66
47
  end
67
48
 
68
- SerializerFactory.define_serializer(active_record_class, serializer)
69
-
49
+ ForestLiana.const_set("#{active_record_class.name}Serializer", serializer)
70
50
  serializer
71
51
  end
72
52
 
@@ -91,12 +71,21 @@ module ForestLiana
91
71
  end
92
72
  end
93
73
 
74
+ def associations(active_record_class)
75
+ active_record_class.reflect_on_all_associations
76
+ end
77
+
94
78
  def association?(active_record_class, column_name)
95
79
  foreign_keys(active_record_class).include?(column_name)
96
80
  end
97
81
 
98
82
  def foreign_keys(active_record_class)
99
- SchemaUtils.associations(active_record_class).map(&:foreign_key)
83
+ associations(active_record_class).map do |association|
84
+ if association.foreign_key.blank?
85
+ byebug
86
+ end
87
+ association.foreign_key
88
+ end
100
89
  end
101
90
 
102
91
  end
@@ -25,51 +25,31 @@ module ForestLiana
25
25
  end
26
26
 
27
27
  def sort_query
28
- query = nil
28
+ query = {}
29
29
 
30
30
  if @params[:sort]
31
31
  @params[:sort].split(',').each do |field|
32
- order = detect_sort_order(@params[:sort])
33
- field.slice!(0) if order == :desc
34
- field = detect_reference(field)
32
+ order = :asc
33
+ if field[0] === '-'
34
+ order = :desc
35
+ field.slice!(0)
36
+ end
35
37
 
36
- query = "#{field} #{order.upcase}"
38
+ query[field] = order
37
39
  end
38
40
  elsif @resource.column_names.include?('created_at')
39
- query = 'created_at DESC'
41
+ query[:created_at] = :desc
40
42
  elsif @resource.column_names.include?('id')
41
- query = 'id DESC'
42
- else
43
- return @records
43
+ query[:id] = :desc
44
44
  end
45
45
 
46
46
  @records.order(query)
47
47
  end
48
48
 
49
- def detect_sort_order(field)
50
- return (if field[0] == '-' then :desc else :asc end)
51
- end
52
-
53
- def detect_reference(param)
54
- ref, field = param.split('.')
55
-
56
- if ref && field
57
- association = @resource.reflect_on_all_associations
58
- .find {|a| a.name == ref.to_sym }
59
-
60
- if association
61
- "#{association.class_name.to_s.underscore.pluralize}.#{field}"
62
- else
63
- param
64
- end
65
- else
66
- param
67
- end
68
- end
69
-
70
49
  def includes
71
- SchemaUtils.associations(@resource).select {|x| !x.options[:through]}
72
- .map(&:name)
50
+ @resource
51
+ .reflect_on_all_associations
52
+ .map {|a| a.name }
73
53
  end
74
54
 
75
55
  def offset
@@ -1,5 +1,6 @@
1
1
  module ForestLiana
2
2
  class SchemaAdapter
3
+
3
4
  def initialize(model)
4
5
  @model = model
5
6
  end
@@ -21,36 +22,19 @@ module ForestLiana
21
22
  end
22
23
 
23
24
  def add_associations
24
- SchemaUtils.associations(@model).each do |association|
25
- begin
26
- if schema = column_association(@collection, association)
27
- schema[:reference] = get_ref_for(association)
28
- schema[:field] = deforeign_key(schema[:field])
29
- schema[:inverseOf] = inverse_of(association)
30
- else
31
- @collection.fields << get_schema_for_association(association)
32
- end
33
- rescue => error
34
- puts error.inspect
25
+ @model.reflect_on_all_associations.each do |association|
26
+ next if association.options[:through]
27
+
28
+ if schema = column_association(@collection, association)
29
+ schema[:reference] = get_ref_for(association)
30
+ schema[:field] = deforeign_key(schema[:field])
31
+ #schema[:inverseOf] = association.inverse_of.try(:name).try(:to_s)
32
+ else
33
+ @collection.fields << get_schema_for_association(association)
35
34
  end
36
35
  end
37
36
  end
38
37
 
39
- def inverse_of(association)
40
- association.inverse_of.try(:name).try(:to_s) ||
41
- automatic_inverse_of(association)
42
- end
43
-
44
- def automatic_inverse_of(association)
45
- name = association.active_record.name.demodulize.underscore
46
-
47
- inverse_association = association.klass.reflections.keys.find do |k|
48
- k.to_s == name || k.to_s == name.pluralize
49
- end
50
-
51
- inverse_association.try(:to_s)
52
- end
53
-
54
38
  def get_schema_for_column(column)
55
39
  { field: column.name, type: get_type_for(column) }
56
40
  end
@@ -59,8 +43,8 @@ module ForestLiana
59
43
  {
60
44
  field: association.name.to_s,
61
45
  type: get_type_for_association(association),
62
- reference: "#{association.klass.table_name.underscore}.id",
63
- inverseOf: inverse_of(association)
46
+ reference: "#{association.class_name.to_s.tableize}.id",
47
+ inverseOf: deforeign_key(association.foreign_key)
64
48
  }
65
49
  end
66
50
 
@@ -89,7 +73,7 @@ module ForestLiana
89
73
  if association.options[:polymorphic] == true
90
74
  '*.id'
91
75
  else
92
- "#{association.klass.table_name.underscore}.id"
76
+ "#{association.class_name.to_s.tableize}.id"
93
77
  end
94
78
  end
95
79
 
@@ -20,14 +20,15 @@ module ForestLiana
20
20
 
21
21
  @resource.columns.each_with_index do |column, index|
22
22
  if column.name == 'id'
23
- conditions << "id = #{@params[:search].to_i}"
23
+ conditions << @resource.where(id: @params[:search])
24
24
  elsif column.type == :string || column.type == :text
25
- conditions <<
26
- "#{column.name} LIKE '%#{@params[:search].downcase}%'"
25
+ conditions << @resource.where(
26
+ @resource.arel_table[column.name].matches(
27
+ "%#{@params[:search].downcase}%"))
27
28
  end
28
29
  end
29
30
 
30
- @resource = @resource.where(conditions.join(' OR '))
31
+ @resource = @resource.where.or(*conditions)
31
32
  end
32
33
  end
33
34
 
@@ -0,0 +1,21 @@
1
+ ActiveRecord::QueryMethods::WhereChain.class_eval do
2
+ def or(*scopes)
3
+ scopes_where_values = []
4
+ scopes_bind_values = []
5
+ scopes.each do |scope|
6
+ case scope
7
+ when ActiveRecord::Relation
8
+ scopes_where_values += scope.where_values
9
+ scopes_bind_values += scope.bind_values
10
+ when Hash
11
+ temp_scope = @scope.model.where(scope)
12
+ scopes_where_values += temp_scope.where_values
13
+ scopes_bind_values += temp_scope.bind_values
14
+ end
15
+ end
16
+ scopes_where_values = scopes_where_values.inject(:or)
17
+ @scope.where_values += [scopes_where_values]
18
+ @scope.bind_values += scopes_bind_values
19
+ @scope
20
+ end
21
+ end
data/config/routes.rb CHANGED
@@ -4,6 +4,6 @@ ForestLiana::Engine.routes.draw do
4
4
  get ':resource/:id' => 'resources#show'
5
5
  get ':resource/:id' => 'resources#show'
6
6
  post ':resource' => 'resources#create'
7
- put ':resource/:id' => 'resources#update'
7
+ patch ':resource/:id' => 'resources#update'
8
8
  delete ':resource/:id' => 'resources#destroy'
9
9
  end
@@ -12,17 +12,10 @@ module ForestLiana
12
12
  end
13
13
 
14
14
  config.after_initialize do
15
- SchemaUtils.tables_names.map do |table_name|
16
- model = SchemaUtils.find_model_from_table_name(table_name)
17
- SerializerFactory.new.serializer_for(model) if \
18
- model.try(:table_exists?)
19
- end
20
-
21
- # Monkey patch the find_serializer_class_name method to specify the good
22
- # serializer to use.
23
- JSONAPI::Serializer.class_eval do
24
- def self.find_serializer_class_name(obj)
25
- SerializerFactory.get_serializer_name(obj.class)
15
+ ActiveRecord::Base.connection.tables.map do |model_name|
16
+ begin
17
+ SerializerFactory.new.serializer_for(model_name.classify.constantize)
18
+ rescue NameError
26
19
  end
27
20
  end
28
21
  end
@@ -1,3 +1,3 @@
1
1
  module ForestLiana
2
- VERSION = "1.0.0.beta7"
2
+ VERSION = "1.0.0-beta.1"
3
3
  end
@@ -1,5 +1,3 @@
1
1
  class BelongsToField < ActiveRecord::Base
2
2
  belongs_to :has_one_field
3
- belongs_to :has_many_field
4
- belongs_to :has_many_class_name_field
5
3
  end
@@ -1,4 +1,3 @@
1
1
  class HasOneField < ActiveRecord::Base
2
2
  has_one :belongs_to_field
3
- has_one :belongs_to_class_name_field
4
3
  end
Binary file
Binary file
@@ -1,122 +1,63 @@
1
-  (1.2ms) CREATE TABLE "belongs_to_class_name_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "foo_id" integer) 
2
-  (0.2ms) select sqlite_version(*)
3
-  (1.0ms) CREATE INDEX "index_belongs_to_class_name_fields_on_foo_id" ON "belongs_to_class_name_fields" ("foo_id")
4
-  (0.9ms) CREATE TABLE "belongs_to_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "has_one_field_id" integer)
5
-  (0.7ms) CREATE INDEX "index_belongs_to_fields_on_has_one_field_id" ON "belongs_to_fields" ("has_one_field_id")
6
-  (0.7ms) CREATE TABLE "boolean_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" boolean)
7
-  (0.9ms) CREATE TABLE "date_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" date) 
8
-  (0.9ms) CREATE TABLE "decimal_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" decimal)
9
-  (0.9ms) CREATE TABLE "float_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" float) 
10
-  (0.8ms) CREATE TABLE "has_and_belongs_to_many_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
11
-  (0.9ms) CREATE TABLE "has_many_class_name_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
12
-  (0.8ms) CREATE TABLE "has_many_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
13
-  (0.8ms) CREATE TABLE "has_one_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
14
-  (0.9ms) CREATE TABLE "integer_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" integer)
15
-  (0.6ms) CREATE TABLE "polymorphic_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "has_one_field_id" integer) 
16
-  (0.9ms) CREATE INDEX "index_polymorphic_fields_on_has_one_field_id" ON "polymorphic_fields" ("has_one_field_id")
17
-  (0.8ms) CREATE TABLE "string_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" varchar) 
18
-  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
19
-  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
20
-  (0.1ms) SELECT version FROM "schema_migrations"
21
-  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150623115554')
22
-  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150608130516')
23
-  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150608131430')
24
-  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150608131603')
25
-  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150608131610')
26
-  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150608132159')
27
-  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150608132621')
28
-  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150608133038')
29
-  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150608133044')
30
-  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150608150016')
31
-  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150609114636')
32
-  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150612112520')
33
-  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150616150629')
34
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
35
2
   (0.1ms) begin transaction
36
- ---------------------------
37
- ForestLianaTest: test_truth
38
- ---------------------------
3
+ ---------------------------------------------------------------------------------
4
+ ForestLiana::SerializerFactoryTest: test_has_many_should_be_serialize_to_has_many
5
+ ---------------------------------------------------------------------------------
39
6
   (0.0ms) rollback transaction
40
7
   (0.0ms) begin transaction
41
- -----------------------------------------------------------
42
- ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
43
- -----------------------------------------------------------
44
-  (0.1ms) rollback transaction
45
-  (0.1ms) begin transaction
46
- -------------------------------------------------------------------------
47
- ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
48
- -------------------------------------------------------------------------
49
-  (0.1ms) rollback transaction
50
-  (0.1ms) begin transaction
51
- ---------------------------------------------------------------------
52
- ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
53
- ---------------------------------------------------------------------
54
-  (0.1ms) rollback transaction
55
-  (0.1ms) begin transaction
56
- -------------------------------------------------------------------------
57
- ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
58
- -------------------------------------------------------------------------
59
-  (0.1ms) rollback transaction
60
-  (0.1ms) begin transaction
61
8
  ----------------------------------------------------------------------------------
62
- ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
9
+ ForestLiana::SerializerFactoryTest: test_belongs_to_should_be_serialize_to_has_one
63
10
  ----------------------------------------------------------------------------------
64
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
65
17
   (0.1ms) begin transaction
66
- ---------------------------------------------------------
67
- ForestLiana::SchemaAdapterTest: test_hasMany_relationship
68
- ---------------------------------------------------------
69
-  (0.1ms) rollback transaction
70
-  (0.1ms) begin transaction
71
- --------------------------------------------------------
72
- ForestLiana::SchemaAdapterTest: test_hasOne_relationship
73
- --------------------------------------------------------
74
-  (0.1ms) rollback transaction
75
-  (0.1ms) begin transaction
76
- ------------------------------------------------------------------------
77
- ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
78
- ------------------------------------------------------------------------
79
-  (0.1ms) rollback transaction
80
-  (0.1ms) begin transaction
81
- --------------------------------------------------------------------------
82
- ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
83
- --------------------------------------------------------------------------
18
+ -------------------------------------------------------------------------------
19
+ ForestLiana::SerializerFactoryTest: test_has_one_should_be_serialize_to_has_one
20
+ -------------------------------------------------------------------------------
84
21
   (0.0ms) rollback transaction
85
22
   (0.0ms) begin transaction
86
- --------------------------------------------------------------------------
87
- ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
88
- --------------------------------------------------------------------------
23
+ ---------------------------------------------------------------------------------
24
+ ForestLiana::SerializerFactoryTest: test_Fields_should_be_serialize_as_attributes
25
+ ---------------------------------------------------------------------------------
89
26
   (0.0ms) rollback transaction
90
27
   (0.0ms) begin transaction
91
- ------------------------------------------------------------------------------------
92
- ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
93
- ------------------------------------------------------------------------------------
94
-  (0.1ms) rollback transaction
95
-  (0.1ms) begin transaction
96
- ---------------------------------------------------------------------------
97
- ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
98
- ---------------------------------------------------------------------------
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
+ ----------------------------------------------------------------------------------------
99
36
   (0.0ms) rollback transaction
100
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
101
37
   (0.1ms) begin transaction
102
38
  ---------------------------
103
39
  ForestLianaTest: test_truth
104
40
  ---------------------------
105
41
   (0.0ms) rollback transaction
106
42
   (0.0ms) begin transaction
107
- ---------------------------------------------------------
108
- ForestLiana::SchemaAdapterTest: test_hasMany_relationship
109
- ---------------------------------------------------------
43
+ ----------------------------------------------------------------------------------
44
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
45
+ ----------------------------------------------------------------------------------
110
46
   (0.1ms) rollback transaction
111
47
   (0.1ms) begin transaction
112
- ------------------------------------------------------------------------
113
- ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
114
- ------------------------------------------------------------------------
115
-  (0.0ms) rollback transaction
116
-  (0.0ms) begin transaction
117
48
  ---------------------------------------------------------------------------
118
49
  ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
119
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
+ ---------------------------------------------------------
120
61
   (0.0ms) rollback transaction
121
62
   (0.0ms) begin transaction
122
63
  -------------------------------------------------------------------------
@@ -124,11 +65,16 @@ ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
124
65
  -------------------------------------------------------------------------
125
66
   (0.0ms) rollback transaction
126
67
   (0.0ms) begin transaction
127
- ----------------------------------------------------------------------------------
128
- ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
129
- ----------------------------------------------------------------------------------
130
-  (0.0ms) rollback transaction
68
+ ------------------------------------------------------------------------------------
69
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
70
+ ------------------------------------------------------------------------------------
71
+  (0.1ms) rollback transaction
131
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
132
78
  -------------------------------------------------------------------------
133
79
  ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
134
80
  -------------------------------------------------------------------------
@@ -139,6 +85,11 @@ ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
139
85
  ---------------------------------------------------------------------
140
86
   (0.0ms) rollback transaction
141
87
   (0.0ms) begin transaction
88
+ --------------------------------------------------------
89
+ ForestLiana::SchemaAdapterTest: test_hasOne_relationship
90
+ --------------------------------------------------------
91
+  (0.0ms) rollback transaction
92
+  (0.0ms) begin transaction
142
93
  -----------------------------------------------------------
143
94
  ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
144
95
  -----------------------------------------------------------
@@ -146,89 +97,84 @@ ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
146
97
   (0.0ms) begin transaction
147
98
  --------------------------------------------------------------------------
148
99
  ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
149
- --------------------------------------------------------------------------
150
-  (0.0ms) rollback transaction
151
-  (0.0ms) begin transaction
152
- ------------------------------------------------------------------------------------
153
- ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
154
- ------------------------------------------------------------------------------------
155
-  (0.0ms) rollback transaction
156
-  (0.0ms) begin transaction
157
- --------------------------------------------------------
158
- ForestLiana::SchemaAdapterTest: test_hasOne_relationship
159
- --------------------------------------------------------
160
-  (0.0ms) rollback transaction
161
-  (0.0ms) begin transaction
162
- --------------------------------------------------------------------------
163
- ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
164
100
  --------------------------------------------------------------------------
165
101
   (0.0ms) rollback transaction
166
102
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
167
103
   (0.1ms) begin transaction
168
- ---------------------------
169
- ForestLianaTest: test_truth
170
- ---------------------------
171
-  (0.0ms) rollback transaction
172
-  (0.0ms) begin transaction
173
104
  --------------------------------------------------------------------------
174
105
  ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
175
106
  --------------------------------------------------------------------------
176
107
   (0.1ms) rollback transaction
177
-  (0.0ms) begin transaction
108
+  (0.1ms) begin transaction
178
109
  -------------------------------------------------------------------------
179
- ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
110
+ ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
180
111
  -------------------------------------------------------------------------
181
112
   (0.0ms) rollback transaction
182
113
   (0.1ms) begin transaction
183
114
  --------------------------------------------------------------------------
184
115
  ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
185
116
  --------------------------------------------------------------------------
117
+  (0.0ms) rollback transaction
118
+  (0.0ms) begin transaction
119
+ ----------------------------------------------------------------------------------
120
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
121
+ ----------------------------------------------------------------------------------
186
122
   (0.0ms) rollback transaction
187
123
   (0.1ms) begin transaction
188
- -------------------------------------------------------------------------
189
- ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
190
- -------------------------------------------------------------------------
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
+ ---------------------------------------------------------------------
191
132
   (0.0ms) rollback transaction
192
133
   (0.0ms) begin transaction
193
134
  ---------------------------------------------------------------------------
194
135
  ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
195
136
  ---------------------------------------------------------------------------
196
-  (0.0ms) rollback transaction
197
-  (0.1ms) begin transaction
137
+  (0.1ms) rollback transaction
138
+  (0.0ms) begin transaction
198
139
  --------------------------------------------------------
199
140
  ForestLiana::SchemaAdapterTest: test_hasOne_relationship
200
141
  --------------------------------------------------------
201
142
   (0.0ms) rollback transaction
202
143
   (0.1ms) begin transaction
203
- -----------------------------------------------------------
204
- ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
205
- -----------------------------------------------------------
206
-  (0.0ms) rollback transaction
207
-  (0.1ms) begin transaction
208
- ------------------------------------------------------------------------
209
- ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
210
- ------------------------------------------------------------------------
211
-  (0.1ms) rollback transaction
212
-  (0.1ms) begin transaction
213
- ----------------------------------------------------------------------------------
214
- ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
215
- ----------------------------------------------------------------------------------
144
+ -------------------------------------------------------------------------
145
+ ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
146
+ -------------------------------------------------------------------------
216
147
   (0.0ms) rollback transaction
217
-  (0.1ms) begin transaction
148
+  (0.0ms) begin transaction
218
149
  ------------------------------------------------------------------------------------
219
150
  ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
220
151
  ------------------------------------------------------------------------------------
221
152
   (0.1ms) rollback transaction
222
153
   (0.1ms) begin transaction
223
- ---------------------------------------------------------------------
224
- ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
225
- ---------------------------------------------------------------------
226
-  (0.0ms) rollback transaction
227
-  (0.0ms) begin transaction
228
154
  ---------------------------------------------------------
229
155
  ForestLiana::SchemaAdapterTest: test_hasMany_relationship
230
156
  ---------------------------------------------------------
157
+  (0.0ms) rollback transaction
158
+  (0.0ms) begin transaction
159
+ ------------------------------------------------------------------------
160
+ ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
161
+ ------------------------------------------------------------------------
231
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
232
178
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
233
179
   (0.1ms) begin transaction
234
180
  ---------------------------
@@ -236,48 +182,84 @@ ForestLianaTest: test_truth
236
182
  ---------------------------
237
183
   (0.0ms) rollback transaction
238
184
   (0.0ms) begin transaction
239
- ------------------------------------------------------------------------
240
- ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
241
- ------------------------------------------------------------------------
242
-  (0.0ms) rollback 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
243
194
   (0.0ms) begin transaction
244
195
  ------------------------------------------------------------------------------------
245
196
  ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
246
197
  ------------------------------------------------------------------------------------
247
-  (0.0ms) rollback transaction
248
-  (0.0ms) begin transaction
198
+  (0.1ms) rollback transaction
199
+  (0.1ms) begin transaction
249
200
  ----------------------------------------------------------------------------------
250
201
  ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
251
202
  ----------------------------------------------------------------------------------
252
203
   (0.0ms) rollback transaction
253
-  (0.0ms) begin 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
254
220
  --------------------------------------------------------------------------
255
221
  ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
256
222
  --------------------------------------------------------------------------
257
-  (0.0ms) rollback transaction
258
-  (0.0ms) begin transaction
223
+  (0.1ms) rollback transaction
224
+  (0.1ms) begin transaction
259
225
  ---------------------------------------------------------------------------
260
226
  ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
261
227
  ---------------------------------------------------------------------------
262
228
   (0.0ms) rollback transaction
263
-  (0.0ms) begin transaction
264
- --------------------------------------------------------
265
- ForestLiana::SchemaAdapterTest: test_hasOne_relationship
266
- --------------------------------------------------------
267
-  (0.0ms) rollback transaction
268
-  (0.0ms) begin 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
269
240
  ---------------------------------------------------------------------
270
241
  ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
271
242
  ---------------------------------------------------------------------
243
+  (0.0ms) rollback transaction
244
+  (0.1ms) begin transaction
245
+ ---------------------------------------------------------
246
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationship
247
+ ---------------------------------------------------------
272
248
   (0.0ms) rollback transaction
273
249
   (0.0ms) begin transaction
274
- -------------------------------------------------------------------------
275
- ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
276
- -------------------------------------------------------------------------
250
+ --------------------------------------------------------
251
+ ForestLiana::SchemaAdapterTest: test_hasOne_relationship
252
+ --------------------------------------------------------
277
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
278
260
   (0.0ms) begin transaction
279
261
  -------------------------------------------------------------------------
280
- ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
262
+ ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
281
263
  -------------------------------------------------------------------------
282
264
   (0.0ms) rollback transaction
283
265
   (0.1ms) begin transaction
@@ -286,148 +268,72 @@ ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
286
268
  --------------------------------------------------------------------------
287
269
   (0.0ms) rollback transaction
288
270
   (0.0ms) begin transaction
289
- ---------------------------------------------------------
290
- ForestLiana::SchemaAdapterTest: test_hasMany_relationship
291
- ---------------------------------------------------------
271
+ --------------------------------------------------------
272
+ ForestLiana::SchemaAdapterTest: test_hasOne_relationship
273
+ --------------------------------------------------------
292
274
   (0.1ms) rollback transaction
293
-  (0.1ms) begin transaction
294
- -----------------------------------------------------------
295
- ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
296
- -----------------------------------------------------------
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
+ ------------------------------------------------------------------------------------
297
284
   (0.0ms) rollback transaction
298
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
299
-  (0.1ms) begin transaction
285
+  (0.0ms) begin transaction
300
286
  ---------------------------------------------------------------------------
301
287
  ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
302
288
  ---------------------------------------------------------------------------
303
-  (0.1ms) rollback transaction
304
-  (0.0ms) begin transaction
289
+  (0.0ms) rollback transaction
290
+  (0.1ms) begin transaction
305
291
  -----------------------------------------------------------
306
292
  ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
307
293
  -----------------------------------------------------------
308
-  (0.0ms) rollback transaction
309
-  (0.0ms) begin transaction
310
- --------------------------------------------------------------------------
311
- ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
312
- --------------------------------------------------------------------------
313
-  (0.0ms) rollback transaction
314
-  (0.1ms) begin transaction
315
- -------------------------------------------------------------------------
316
- ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
317
- -------------------------------------------------------------------------
318
-  (0.0ms) rollback transaction
319
-  (0.0ms) begin transaction
320
- ------------------------------------------------------------------------------------
321
- ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
322
- ------------------------------------------------------------------------------------
323
-  (0.1ms) rollback transaction
324
-  (0.1ms) begin transaction
325
- ---------------------------------------------------------
326
- ForestLiana::SchemaAdapterTest: test_hasMany_relationship
327
- ---------------------------------------------------------
328
-  (0.1ms) rollback transaction
329
-  (0.1ms) begin transaction
330
- ------------------------------------------------------------------------
331
- ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
332
- ------------------------------------------------------------------------
333
294
   (0.0ms) rollback transaction
334
295
   (0.1ms) begin transaction
335
- --------------------------------------------------------------------------
336
- ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
337
- --------------------------------------------------------------------------
338
-  (0.1ms) rollback transaction
339
-  (0.0ms) begin transaction
340
296
  -------------------------------------------------------------------------
341
297
  ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
342
298
  -------------------------------------------------------------------------
343
299
   (0.0ms) rollback transaction
344
300
   (0.1ms) begin transaction
345
- --------------------------------------------------------
346
- ForestLiana::SchemaAdapterTest: test_hasOne_relationship
347
- --------------------------------------------------------
348
-  (0.0ms) rollback transaction
349
-  (0.1ms) begin transaction
350
301
  ----------------------------------------------------------------------------------
351
302
  ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
352
303
  ----------------------------------------------------------------------------------
353
-  (0.0ms) rollback transaction
354
-  (0.0ms) begin transaction
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
355
311
  ---------------------------------------------------------------------
356
312
  ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
357
313
  ---------------------------------------------------------------------
358
-  (0.0ms) rollback transaction
359
-  (0.0ms) begin transaction
360
- ---------------------------
361
- ForestLianaTest: test_truth
362
- ---------------------------
363
-  (0.1ms) rollback transaction
364
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
365
-  (0.1ms) begin transaction
366
- ---------------------------
367
- ForestLianaTest: test_truth
368
- ---------------------------
369
314
   (0.1ms) rollback transaction
370
-  (0.0ms) begin transaction
371
- --------------------------------------------------------
372
- ForestLiana::SchemaAdapterTest: test_hasOne_relationship
373
- --------------------------------------------------------
374
-  (0.1ms) rollback transaction
375
-  (0.1ms) begin transaction
376
- -----------------------------------------------------------
377
- ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
378
- -----------------------------------------------------------
379
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
380
315
   (0.1ms) begin transaction
381
316
  ---------------------------
382
317
  ForestLianaTest: test_truth
383
318
  ---------------------------
384
319
   (0.0ms) rollback transaction
385
-  (0.0ms) begin transaction
386
- ------------------------------------------------------------------------------------
387
- ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
388
- ------------------------------------------------------------------------------------
320
+  (0.1ms) begin transaction
321
+ ----------------------------------------------------------------------------------------
322
+ ForestLiana::ResourceDeserializerTest: test_JSONAPI_payload_should_support_relationships
323
+ ----------------------------------------------------------------------------------------
389
324
   (0.1ms) rollback transaction
390
325
   (0.1ms) begin transaction
391
- --------------------------------------------------------------------------
392
- ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
393
- --------------------------------------------------------------------------
394
-  (0.0ms) rollback 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"
395
331
   (0.1ms) begin transaction
396
332
  ---------------------------------------------------------------------------
397
333
  ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
398
334
  ---------------------------------------------------------------------------
399
-  (0.0ms) rollback transaction
400
-  (0.1ms) begin transaction
401
- ------------------------------------------------------------------------
402
- ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
403
- ------------------------------------------------------------------------
404
-  (0.1ms) rollback transaction
405
-  (0.1ms) begin transaction
406
- -----------------------------------------------------------
407
- ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
408
- -----------------------------------------------------------
409
-  (0.1ms) rollback transaction
410
-  (0.1ms) begin transaction
411
- -------------------------------------------------------------------------
412
- ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
413
- -------------------------------------------------------------------------
414
335
   (0.1ms) rollback transaction
415
-  (0.1ms) begin transaction
416
- --------------------------------------------------------------------------
417
- ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
418
- --------------------------------------------------------------------------
419
-  (0.0ms) rollback transaction
420
336
   (0.0ms) begin transaction
421
- ----------------------------------------------------------------------------------
422
- ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
423
- ----------------------------------------------------------------------------------
424
-  (0.0ms) rollback transaction
425
-  (0.1ms) begin transaction
426
- -------------------------------------------------------------------------
427
- ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
428
- -------------------------------------------------------------------------
429
-  (0.0ms) rollback transaction
430
-  (0.1ms) begin transaction
431
337
  ---------------------------------------------------------------------
432
338
  ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
433
339
  ---------------------------------------------------------------------
@@ -436,43 +342,22 @@ ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
436
342
  ---------------------------------------------------------
437
343
  ForestLiana::SchemaAdapterTest: test_hasMany_relationship
438
344
  ---------------------------------------------------------
439
-  (0.0ms) rollback transaction
440
-  (0.0ms) begin transaction
441
- --------------------------------------------------------
442
- ForestLiana::SchemaAdapterTest: test_hasOne_relationship
443
- --------------------------------------------------------
444
-  (0.0ms) rollback transaction
445
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
345
+  (0.8ms) rollback transaction
446
346
   (0.1ms) begin transaction
447
- ---------------------------
448
- ForestLianaTest: test_truth
449
- ---------------------------
347
+ ------------------------------------------------------------------------
348
+ ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
349
+ ------------------------------------------------------------------------
450
350
   (0.0ms) rollback transaction
451
-  (0.0ms) begin transaction
351
+  (0.1ms) begin transaction
452
352
  -------------------------------------------------------------------------
453
353
  ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
454
354
  -------------------------------------------------------------------------
455
355
   (0.1ms) rollback transaction
456
356
   (0.1ms) begin transaction
457
- ---------------------------------------------------------------------
458
- ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
459
- ---------------------------------------------------------------------
460
-  (0.0ms) rollback transaction
461
-  (0.0ms) begin transaction
462
- --------------------------------------------------------------------------
463
- ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
464
- --------------------------------------------------------------------------
465
-  (0.0ms) rollback transaction
466
-  (0.1ms) begin transaction
467
- ------------------------------------------------------------------------
468
- ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
469
- ------------------------------------------------------------------------
470
-  (0.0ms) rollback transaction
471
-  (0.0ms) begin transaction
472
- ---------------------------------------------------------------------------
473
- ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
474
- ---------------------------------------------------------------------------
475
-  (0.0ms) rollback transaction
357
+ --------------------------------------------------------
358
+ ForestLiana::SchemaAdapterTest: test_hasOne_relationship
359
+ --------------------------------------------------------
360
+  (0.1ms) rollback transaction
476
361
   (0.1ms) begin transaction
477
362
  -----------------------------------------------------------
478
363
  ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
@@ -482,781 +367,29 @@ ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
482
367
  ------------------------------------------------------------------------------------
483
368
  ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
484
369
  ------------------------------------------------------------------------------------
485
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
486
-  (0.1ms) begin transaction
487
- -------------------------------------------------------------------------
488
- ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
489
- -------------------------------------------------------------------------
490
370
   (0.1ms) rollback transaction
491
371
   (0.1ms) begin transaction
492
372
  --------------------------------------------------------------------------
493
- ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
373
+ ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
494
374
  --------------------------------------------------------------------------
495
-  (0.1ms) rollback transaction
496
-  (0.0ms) begin transaction
497
- ---------------------------------------------------------------------
498
- ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
499
- ---------------------------------------------------------------------
500
-  (0.1ms) rollback transaction
375
+  (0.2ms) rollback transaction
501
376
   (0.1ms) begin transaction
502
377
  ----------------------------------------------------------------------------------
503
378
  ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
504
379
  ----------------------------------------------------------------------------------
505
-  (0.0ms) rollback transaction
506
-  (0.0ms) begin transaction
507
- ---------------------------------------------------------------------------
508
- ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
509
- ---------------------------------------------------------------------------
510
-  (0.0ms) rollback transaction
511
-  (0.0ms) begin transaction
512
- ---------------------------------------------------------
513
- ForestLiana::SchemaAdapterTest: test_hasMany_relationship
514
- ---------------------------------------------------------
515
-  (0.0ms) rollback transaction
516
-  (0.1ms) begin transaction
517
- --------------------------------------------------------------------------
518
- ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
519
- --------------------------------------------------------------------------
520
-  (0.0ms) rollback transaction
521
-  (0.1ms) begin transaction
380
+  (0.2ms) rollback transaction
381
+  (0.2ms) begin transaction
522
382
  -------------------------------------------------------------------------
523
383
  ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
524
384
  -------------------------------------------------------------------------
525
-  (0.0ms) rollback transaction
526
-  (0.0ms) begin transaction
527
- -----------------------------------------------------------
528
- ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
529
- -----------------------------------------------------------
530
-  (0.0ms) rollback transaction
531
-  (0.0ms) begin transaction
532
- --------------------------------------------------------
533
- ForestLiana::SchemaAdapterTest: test_hasOne_relationship
534
- --------------------------------------------------------
535
-  (0.0ms) rollback transaction
536
-  (0.0ms) begin transaction
537
- ------------------------------------------------------------------------
538
- ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
539
- ------------------------------------------------------------------------
540
-  (0.0ms) rollback transaction
541
-  (0.0ms) begin transaction
542
- ------------------------------------------------------------------------------------
543
- ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
544
- ------------------------------------------------------------------------------------
545
385
   (0.1ms) rollback transaction
546
386
   (0.1ms) begin transaction
547
- ---------------------------
548
- ForestLianaTest: test_truth
549
- ---------------------------
550
-  (0.0ms) rollback transaction
551
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
552
-  (0.1ms) begin transaction
553
- ---------------------------
554
- ForestLianaTest: test_truth
555
- ---------------------------
556
-  (0.0ms) rollback transaction
557
-  (0.0ms) begin transaction
558
387
  --------------------------------------------------------------------------
559
- ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
388
+ ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
560
389
  --------------------------------------------------------------------------
561
390
   (0.1ms) rollback transaction
562
-  (0.0ms) begin transaction
563
- ---------------------------------------------------------
564
- ForestLiana::SchemaAdapterTest: test_hasMany_relationship
565
- ---------------------------------------------------------
566
-  (0.0ms) rollback transaction
567
-  (0.1ms) begin transaction
568
- ---------------------------------------------------------------------
569
- ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
570
- ---------------------------------------------------------------------
571
-  (0.0ms) rollback transaction
572
-  (0.1ms) begin transaction
573
- -------------------------------------------------------------------------
574
- ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
575
- -------------------------------------------------------------------------
576
-  (0.0ms) rollback transaction
577
-  (0.1ms) begin transaction
578
- --------------------------------------------------------
579
- ForestLiana::SchemaAdapterTest: test_hasOne_relationship
580
- --------------------------------------------------------
581
-  (0.0ms) rollback transaction
582
-  (0.1ms) begin transaction
583
- ---------------------------------------------------------------------------
584
- ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
585
- ---------------------------------------------------------------------------
586
-  (0.0ms) rollback transaction
587
-  (0.0ms) begin transaction
588
- ------------------------------------------------------------------------------------
589
- ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
590
- ------------------------------------------------------------------------------------
591
-  (0.0ms) rollback transaction
592
-  (0.0ms) begin transaction
593
- --------------------------------------------------------------------------
594
- ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
595
- --------------------------------------------------------------------------
596
-  (0.0ms) rollback transaction
597
-  (0.0ms) begin transaction
598
- -----------------------------------------------------------
599
- ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
600
- -----------------------------------------------------------
601
-  (0.0ms) rollback transaction
602
-  (0.1ms) begin transaction
603
- -------------------------------------------------------------------------
604
- ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
605
- -------------------------------------------------------------------------
606
-  (0.1ms) rollback transaction
607
-  (0.1ms) begin transaction
608
- ----------------------------------------------------------------------------------
609
- ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
610
- ----------------------------------------------------------------------------------
611
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
612
-  (0.1ms) begin transaction
613
- -------------------------------------------------------------------------
614
- ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
615
- -------------------------------------------------------------------------
616
-  (0.1ms) rollback transaction
617
-  (0.1ms) begin transaction
618
- -------------------------------------------------------------------------
619
- ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
620
- -------------------------------------------------------------------------
621
-  (0.0ms) rollback transaction
622
-  (0.1ms) begin transaction
623
- ------------------------------------------------------------------------
624
- ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
625
- ------------------------------------------------------------------------
626
-  (0.0ms) rollback transaction
627
-  (0.1ms) begin transaction
628
- ---------------------------------------------------------------------------
629
- ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
630
- ---------------------------------------------------------------------------
631
-  (0.1ms) rollback transaction
632
-  (0.1ms) begin transaction
633
- --------------------------------------------------------------------------
634
- ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
635
- --------------------------------------------------------------------------
636
-  (0.0ms) rollback transaction
637
-  (0.1ms) begin transaction
638
- ---------------------------------------------------------------------
639
- ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
640
- ---------------------------------------------------------------------
641
-  (0.0ms) rollback transaction
642
-  (0.1ms) begin transaction
643
- -----------------------------------------------------------
644
- ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
645
- -----------------------------------------------------------
646
-  (0.0ms) rollback transaction
647
-  (0.1ms) begin transaction
648
- ----------------------------------------------------------------------------------
649
- ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
650
- ----------------------------------------------------------------------------------
651
-  (0.0ms) rollback transaction
652
-  (0.1ms) begin transaction
653
- --------------------------------------------------------------------------
654
- ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
655
- --------------------------------------------------------------------------
656
-  (0.0ms) rollback transaction
657
-  (0.1ms) begin transaction
658
- ---------------------------------------------------------
659
- ForestLiana::SchemaAdapterTest: test_hasMany_relationship
660
- ---------------------------------------------------------
661
-  (0.0ms) rollback transaction
662
-  (0.0ms) begin transaction
663
- ------------------------------------------------------------------------------------
664
- ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
665
- ------------------------------------------------------------------------------------
666
-  (0.1ms) rollback transaction
667
-  (0.1ms) begin transaction
668
- --------------------------------------------------------
669
- ForestLiana::SchemaAdapterTest: test_hasOne_relationship
670
- --------------------------------------------------------
671
-  (0.1ms) rollback transaction
672
-  (0.1ms) begin transaction
673
- ---------------------------
674
- ForestLianaTest: test_truth
675
- ---------------------------
676
-  (0.0ms) rollback transaction
677
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
678
-  (0.1ms) begin transaction
679
- ---------------------------
680
- ForestLianaTest: test_truth
681
- ---------------------------
682
-  (0.1ms) rollback transaction
683
-  (0.0ms) begin transaction
684
- ---------------------------------------------------------------------
685
- ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
686
- ---------------------------------------------------------------------
687
-  (0.1ms) rollback transaction
688
-  (0.1ms) begin transaction
689
- ------------------------------------------------------------------------------------
690
- ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
691
- ------------------------------------------------------------------------------------
692
-  (0.0ms) rollback transaction
693
-  (0.1ms) begin transaction
694
- --------------------------------------------------------------------------
695
- ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
696
- --------------------------------------------------------------------------
697
-  (0.0ms) rollback transaction
698
-  (0.1ms) begin transaction
699
- -------------------------------------------------------------------------
700
- ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
701
- -------------------------------------------------------------------------
702
-  (0.0ms) rollback transaction
703
-  (0.0ms) begin transaction
704
- ------------------------------------------------------------------------
705
- ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
706
- ------------------------------------------------------------------------
707
-  (0.1ms) rollback transaction
708
-  (0.1ms) begin transaction
709
- ---------------------------------------------------------
710
- ForestLiana::SchemaAdapterTest: test_hasMany_relationship
711
- ---------------------------------------------------------
712
-  (0.0ms) rollback transaction
713
-  (0.0ms) begin transaction
714
- ----------------------------------------------------------------------------------
715
- ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
716
- ----------------------------------------------------------------------------------
717
-  (0.0ms) rollback transaction
718
-  (0.1ms) begin transaction
719
- --------------------------------------------------------------------------
720
- ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
721
- --------------------------------------------------------------------------
722
-  (0.0ms) rollback transaction
723
-  (0.0ms) begin transaction
724
- -------------------------------------------------------------------------
725
- ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
726
- -------------------------------------------------------------------------
727
-  (0.0ms) rollback transaction
728
-  (0.1ms) begin transaction
729
- -----------------------------------------------------------
730
- ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
731
- -----------------------------------------------------------
732
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
733
-  (0.1ms) begin transaction
734
- ---------------------------
735
- ForestLianaTest: test_truth
736
- ---------------------------
737
-  (0.0ms) rollback transaction
738
-  (0.0ms) begin transaction
739
- ---------------------------------------------------------------------------
740
- ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
741
- ---------------------------------------------------------------------------
742
-  (0.1ms) rollback transaction
743
-  (0.1ms) begin transaction
744
- ------------------------------------------------------------------------
745
- ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
746
- ------------------------------------------------------------------------
747
-  (0.1ms) rollback transaction
748
-  (0.0ms) begin transaction
749
- --------------------------------------------------------------------------
750
- ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
751
- --------------------------------------------------------------------------
752
-  (0.0ms) rollback transaction
753
-  (0.0ms) begin transaction
754
- --------------------------------------------------------
755
- ForestLiana::SchemaAdapterTest: test_hasOne_relationship
756
- --------------------------------------------------------
757
-  (0.0ms) rollback transaction
758
-  (0.0ms) begin transaction
759
- -------------------------------------------------------------------------
760
- ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
761
- -------------------------------------------------------------------------
762
-  (0.0ms) rollback transaction
763
-  (0.0ms) begin transaction
764
- ---------------------------------------------------------
765
- ForestLiana::SchemaAdapterTest: test_hasMany_relationship
766
- ---------------------------------------------------------
767
-  (0.0ms) rollback transaction
768
-  (0.0ms) begin transaction
769
- -------------------------------------------------------------------------
770
- ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
771
- -------------------------------------------------------------------------
772
-  (0.0ms) rollback transaction
773
-  (0.1ms) begin transaction
774
- --------------------------------------------------------------------------
775
- ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
776
- --------------------------------------------------------------------------
777
-  (0.0ms) rollback transaction
778
-  (0.1ms) begin transaction
779
- -----------------------------------------------------------
780
- ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
781
- -----------------------------------------------------------
782
-  (0.0ms) rollback transaction
783
-  (0.1ms) begin transaction
784
- ------------------------------------------------------------------------------------
785
- ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
786
- ------------------------------------------------------------------------------------
787
-  (0.0ms) rollback transaction
788
-  (0.0ms) begin transaction
789
- ----------------------------------------------------------------------------------
790
- ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
791
- ----------------------------------------------------------------------------------
792
-  (0.0ms) rollback transaction
793
-  (0.0ms) begin transaction
794
- ---------------------------------------------------------------------
795
- ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
796
- ---------------------------------------------------------------------
797
-  (0.0ms) rollback transaction
798
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
799
-  (0.1ms) begin transaction
800
- ---------------------------
801
- ForestLianaTest: test_truth
802
- ---------------------------
803
-  (0.1ms) rollback transaction
804
-  (0.0ms) begin transaction
805
- ---------------------------------------------------------
806
- ForestLiana::SchemaAdapterTest: test_hasMany_relationship
807
- ---------------------------------------------------------
808
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
809
-  (0.1ms) begin transaction
810
- ---------------------------
811
- ForestLianaTest: test_truth
812
- ---------------------------
813
-  (0.0ms) rollback transaction
814
-  (0.1ms) begin transaction
815
- ---------------------------------------------------------------------------
816
- ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
817
- ---------------------------------------------------------------------------
818
-  (0.0ms) rollback transaction
819
-  (0.1ms) begin transaction
820
- -------------------------------------------------------------------------
821
- ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
822
- -------------------------------------------------------------------------
823
-  (0.0ms) rollback transaction
824
-  (0.1ms) begin transaction
825
- ---------------------------------------------------------
826
- ForestLiana::SchemaAdapterTest: test_hasMany_relationship
827
- ---------------------------------------------------------
828
-  (0.0ms) rollback transaction
829
-  (0.1ms) begin transaction
830
- --------------------------------------------------------
831
- ForestLiana::SchemaAdapterTest: test_hasOne_relationship
832
- --------------------------------------------------------
833
-  (0.0ms) rollback transaction
834
-  (0.1ms) begin transaction
835
- ----------------------------------------------------------------------------------
836
- ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
837
- ----------------------------------------------------------------------------------
838
-  (0.0ms) rollback transaction
839
-  (0.1ms) begin transaction
840
- --------------------------------------------------------------------------
841
- ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
842
- --------------------------------------------------------------------------
843
-  (0.0ms) rollback transaction
844
-  (0.1ms) begin transaction
845
- ------------------------------------------------------------------------------------
846
- ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
847
- ------------------------------------------------------------------------------------
848
-  (0.1ms) rollback transaction
849
-  (0.0ms) begin transaction
850
- --------------------------------------------------------------------------
851
- ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
852
- --------------------------------------------------------------------------
853
-  (0.0ms) rollback transaction
854
-  (0.1ms) begin transaction
855
- ------------------------------------------------------------------------
856
- ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
857
- ------------------------------------------------------------------------
858
-  (0.0ms) rollback transaction
859
-  (0.1ms) begin transaction
860
- -------------------------------------------------------------------------
861
- ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
862
- -------------------------------------------------------------------------
863
-  (0.1ms) rollback transaction
864
-  (0.0ms) begin transaction
865
- ---------------------------------------------------------------------
866
- ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
867
- ---------------------------------------------------------------------
868
-  (0.0ms) rollback transaction
869
-  (0.0ms) begin transaction
870
- -----------------------------------------------------------
871
- ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
872
- -----------------------------------------------------------
873
-  (0.1ms) rollback transaction
874
- ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
875
-  (0.1ms) begin transaction
876
- --------------------------------------------------------
877
- ForestLiana::SchemaAdapterTest: test_hasOne_relationship
878
- --------------------------------------------------------
879
-  (0.1ms) rollback transaction
880
-  (0.0ms) begin transaction
881
- --------------------------------------------------------------------------
882
- ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
883
- --------------------------------------------------------------------------
884
-  (0.0ms) rollback transaction
885
-  (0.1ms) begin transaction
886
- -------------------------------------------------------------------------
887
- ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
888
- -------------------------------------------------------------------------
889
-  (0.0ms) rollback transaction
890
-  (0.0ms) begin transaction
891
- ---------------------------------------------------------------------------
892
- ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
893
- ---------------------------------------------------------------------------
894
-  (0.0ms) rollback transaction
895
-  (0.0ms) begin transaction
896
- ------------------------------------------------------------------------
897
- ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
898
- ------------------------------------------------------------------------
899
-  (0.0ms) rollback transaction
900
-  (0.0ms) begin transaction
901
- -----------------------------------------------------------
902
- ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
903
- -----------------------------------------------------------
904
-  (0.0ms) rollback transaction
905
-  (0.1ms) begin transaction
906
- ------------------------------------------------------------------------------------
907
- ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
908
- ------------------------------------------------------------------------------------
909
-  (0.0ms) rollback transaction
910
-  (0.0ms) begin transaction
911
- ---------------------------------------------------------------------
912
- ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
913
- ---------------------------------------------------------------------
914
-  (0.0ms) rollback transaction
915
-  (0.0ms) begin transaction
916
- --------------------------------------------------------------------------
917
- ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
918
- --------------------------------------------------------------------------
919
-  (0.0ms) rollback transaction
920
-  (0.0ms) begin transaction
921
- ---------------------------------------------------------
922
- ForestLiana::SchemaAdapterTest: test_hasMany_relationship
923
- ---------------------------------------------------------
924
-  (0.0ms) rollback transaction
925
-  (0.1ms) begin transaction
926
- -------------------------------------------------------------------------
927
- ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
928
- -------------------------------------------------------------------------
929
-  (0.0ms) rollback transaction
930
-  (0.1ms) begin transaction
931
- ----------------------------------------------------------------------------------
932
- ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
933
- ----------------------------------------------------------------------------------
934
-  (0.0ms) rollback transaction
935
-  (0.1ms) begin transaction
936
- ---------------------------
937
- ForestLianaTest: test_truth
938
- ---------------------------
939
-  (0.0ms) rollback transaction
940
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
941
-  (0.2ms) begin transaction
942
- ---------------------------
943
- ForestLianaTest: test_truth
944
- ---------------------------
945
-  (0.0ms) rollback transaction
946
-  (0.0ms) begin transaction
947
- ---------------------------------------------------------------------------
948
- ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
949
- ---------------------------------------------------------------------------
950
-  (0.1ms) rollback transaction
951
-  (0.1ms) begin transaction
952
- --------------------------------------------------------------------------
953
- ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
954
- --------------------------------------------------------------------------
955
-  (0.0ms) rollback transaction
956
-  (0.0ms) begin transaction
957
- ---------------------------------------------------------------------
958
- ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
959
- ---------------------------------------------------------------------
960
-  (0.1ms) rollback transaction
961
-  (0.1ms) begin transaction
962
- -------------------------------------------------------------------------
963
- ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
964
- -------------------------------------------------------------------------
965
-  (0.0ms) rollback transaction
966
-  (0.1ms) begin transaction
967
- ------------------------------------------------------------------------
968
- ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
969
- ------------------------------------------------------------------------
970
-  (0.0ms) rollback transaction
971
-  (0.0ms) begin transaction
972
- -------------------------------------------------------------------------
973
- ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
974
- -------------------------------------------------------------------------
975
-  (0.0ms) rollback transaction
976
-  (0.0ms) begin transaction
977
- --------------------------------------------------------------------------
978
- ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
979
- --------------------------------------------------------------------------
980
-  (0.0ms) rollback transaction
981
-  (0.1ms) begin transaction
982
- ------------------------------------------------------------------------------------
983
- ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
984
- ------------------------------------------------------------------------------------
985
-  (0.0ms) rollback transaction
986
-  (0.1ms) begin transaction
987
- --------------------------------------------------------
988
- ForestLiana::SchemaAdapterTest: test_hasOne_relationship
989
- --------------------------------------------------------
990
-  (0.1ms) rollback transaction
991
-  (0.1ms) begin transaction
992
- ----------------------------------------------------------------------------------
993
- ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
994
- ----------------------------------------------------------------------------------
995
-  (0.1ms) rollback transaction
996
-  (0.1ms) begin transaction
997
- ---------------------------------------------------------
998
- ForestLiana::SchemaAdapterTest: test_hasMany_relationship
999
- ---------------------------------------------------------
1000
-  (0.0ms) rollback transaction
1001
-  (0.0ms) begin transaction
1002
- -----------------------------------------------------------
1003
- ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
1004
- -----------------------------------------------------------
1005
-  (0.0ms) rollback transaction
1006
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1007
-  (0.1ms) begin transaction
1008
- ---------------------------
1009
- ForestLianaTest: test_truth
1010
- ---------------------------
1011
-  (0.0ms) rollback transaction
1012
-  (0.1ms) begin transaction
1013
- ------------------------------------------------------------------------
1014
- ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
1015
- ------------------------------------------------------------------------
1016
-  (0.1ms) rollback transaction
1017
-  (0.1ms) begin transaction
1018
- -----------------------------------------------------------
1019
- ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
1020
- -----------------------------------------------------------
1021
-  (0.1ms) rollback transaction
1022
-  (0.1ms) begin transaction
1023
- ---------------------------------------------------------------------
1024
- ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
1025
- ---------------------------------------------------------------------
1026
-  (0.0ms) rollback transaction
1027
-  (0.1ms) begin transaction
1028
- ----------------------------------------------------------------------------------
1029
- ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
1030
- ----------------------------------------------------------------------------------
1031
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1032
-  (0.1ms) begin transaction
1033
- ---------------------------------------------------------
1034
- ForestLiana::SchemaAdapterTest: test_hasMany_relationship
1035
- ---------------------------------------------------------
1036
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1037
-  (0.1ms) begin transaction
1038
- ---------------------------------------------------------
1039
- ForestLiana::SchemaAdapterTest: test_hasMany_relationship
1040
- ---------------------------------------------------------
1041
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1042
-  (0.1ms) begin transaction
1043
- ---------------------------
1044
- ForestLianaTest: test_truth
1045
- ---------------------------
1046
-  (0.0ms) rollback transaction
1047
-  (0.0ms) begin transaction
1048
- ---------------------------------------------------------
1049
- ForestLiana::SchemaAdapterTest: test_hasMany_relationship
1050
- ---------------------------------------------------------
1051
-  (0.1ms) rollback transaction
1052
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1053
-  (0.1ms) begin transaction
1054
- ---------------------------
1055
- ForestLianaTest: test_truth
1056
- ---------------------------
1057
-  (0.1ms) rollback transaction
1058
-  (0.1ms) begin transaction
1059
- ---------------------------------------------------------
1060
- ForestLiana::SchemaAdapterTest: test_hasMany_relationship
1061
- ---------------------------------------------------------
1062
-  (0.1ms) rollback transaction
1063
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1064
-  (0.1ms) begin transaction
1065
- ---------------------------
1066
- ForestLianaTest: test_truth
1067
- ---------------------------
1068
-  (0.1ms) rollback transaction
1069
-  (0.0ms) begin transaction
1070
- ------------------------------------------------------------------------------------
1071
- ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
1072
- ------------------------------------------------------------------------------------
1073
-  (0.1ms) rollback transaction
1074
-  (0.0ms) begin transaction
1075
- --------------------------------------------------------
1076
- ForestLiana::SchemaAdapterTest: test_hasOne_relationship
1077
- --------------------------------------------------------
1078
-  (0.0ms) rollback transaction
1079
-  (0.1ms) begin transaction
1080
- --------------------------------------------------------------------------
1081
- ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
1082
- --------------------------------------------------------------------------
1083
-  (0.0ms) rollback transaction
1084
-  (0.1ms) begin transaction
1085
- -----------------------------------------------------------
1086
- ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
1087
- -----------------------------------------------------------
1088
-  (0.0ms) rollback transaction
1089
-  (0.0ms) begin transaction
1090
- --------------------------------------------------------------------------
1091
- ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
1092
- --------------------------------------------------------------------------
1093
-  (0.0ms) rollback transaction
1094
-  (0.0ms) begin transaction
1095
- ---------------------------------------------------------------------------
1096
- ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
1097
- ---------------------------------------------------------------------------
1098
-  (0.0ms) rollback transaction
1099
-  (0.1ms) begin transaction
1100
- ------------------------------------------------------------------------
1101
- ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
1102
- ------------------------------------------------------------------------
1103
-  (0.0ms) rollback transaction
1104
-  (0.1ms) begin transaction
1105
- ---------------------------------------------------------------------
1106
- ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
1107
- ---------------------------------------------------------------------
1108
-  (0.0ms) rollback transaction
1109
-  (0.0ms) begin transaction
1110
- ----------------------------------------------------------------------------------
1111
- ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
1112
- ----------------------------------------------------------------------------------
1113
-  (0.0ms) rollback transaction
1114
-  (0.1ms) begin transaction
1115
- -------------------------------------------------------------------------
1116
- ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
1117
- -------------------------------------------------------------------------
1118
-  (0.0ms) rollback transaction
1119
-  (0.1ms) begin transaction
1120
- -------------------------------------------------------------------------
1121
- ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
1122
- -------------------------------------------------------------------------
1123
-  (0.0ms) rollback transaction
1124
-  (0.1ms) begin transaction
1125
- ---------------------------------------------------------
1126
- ForestLiana::SchemaAdapterTest: test_hasMany_relationship
1127
- ---------------------------------------------------------
1128
-  (0.1ms) rollback transaction
1129
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1130
-  (0.1ms) begin transaction
1131
- ------------------------------------------------------------------------------------
1132
- ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
1133
- ------------------------------------------------------------------------------------
1134
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1135
-  (0.2ms) begin transaction
1136
- ---------------------------
1137
- ForestLianaTest: test_truth
1138
- ---------------------------
1139
-  (0.0ms) rollback transaction
1140
-  (0.1ms) begin transaction
1141
- ------------------------------------------------------------------------------------
1142
- ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
1143
- ------------------------------------------------------------------------------------
1144
-  (0.1ms) rollback transaction
1145
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1146
-  (0.1ms) begin transaction
1147
- ------------------------------------------------------------------------------------
1148
- ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
1149
- ------------------------------------------------------------------------------------
1150
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1151
-  (0.1ms) begin transaction
1152
- ---------------------------
1153
- ForestLianaTest: test_truth
1154
- ---------------------------
1155
-  (0.1ms) rollback transaction
1156
-  (0.1ms) begin transaction
1157
- ------------------------------------------------------------------------------------
1158
- ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
1159
- ------------------------------------------------------------------------------------
1160
-  (0.1ms) rollback transaction
1161
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1162
-  (0.1ms) begin transaction
1163
- ---------------------------
1164
- ForestLianaTest: test_truth
1165
- ---------------------------
1166
-  (0.0ms) rollback transaction
1167
-  (0.0ms) begin transaction
1168
- ------------------------------------------------------------------------------------
1169
- ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
1170
- ------------------------------------------------------------------------------------
1171
-  (0.1ms) rollback transaction
1172
-  (0.1ms) begin transaction
1173
- ----------------------------------------------------------------------------------
1174
- ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
1175
- ----------------------------------------------------------------------------------
1176
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1177
-  (0.1ms) begin transaction
1178
- ----------------------------------------------------------------------------------
1179
- ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
1180
- ----------------------------------------------------------------------------------
1181
-  (0.1ms) rollback transaction
1182
-  (0.1ms) begin transaction
1183
- ------------------------------------------------------------------------------------
1184
- ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
1185
- ------------------------------------------------------------------------------------
1186
-  (0.1ms) rollback transaction
1187
-  (0.0ms) begin transaction
1188
- ---------------------------
1189
- ForestLianaTest: test_truth
1190
- ---------------------------
1191
-  (0.0ms) rollback transaction
1192
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1193
-  (0.1ms) begin transaction
1194
- ----------------------------------------------------------------------------------
1195
- ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
1196
- ----------------------------------------------------------------------------------
1197
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1198
391
   (0.1ms) begin transaction
1199
392
  ---------------------------
1200
393
  ForestLianaTest: test_truth
1201
394
  ---------------------------
1202
-  (0.0ms) rollback transaction
1203
-  (0.1ms) begin transaction
1204
- ---------------------------------------------------------------------------
1205
- ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
1206
- ---------------------------------------------------------------------------
1207
-  (0.2ms) rollback transaction
1208
-  (0.1ms) begin transaction
1209
- ----------------------------------------------------------------------------------
1210
- ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
1211
- ----------------------------------------------------------------------------------
1212
-  (0.1ms) rollback transaction
1213
-  (0.0ms) begin transaction
1214
- --------------------------------------------------------------------------
1215
- ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
1216
- --------------------------------------------------------------------------
1217
-  (0.0ms) rollback transaction
1218
-  (0.1ms) begin transaction
1219
- ------------------------------------------------------------------------
1220
- ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
1221
- ------------------------------------------------------------------------
1222
-  (0.0ms) rollback transaction
1223
-  (0.0ms) begin transaction
1224
- --------------------------------------------------------------------------
1225
- ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
1226
- --------------------------------------------------------------------------
1227
-  (0.0ms) rollback transaction
1228
-  (0.0ms) begin transaction
1229
- -------------------------------------------------------------------------
1230
- ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
1231
- -------------------------------------------------------------------------
1232
-  (0.0ms) rollback transaction
1233
-  (0.0ms) begin transaction
1234
- ---------------------------------------------------------------------
1235
- ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
1236
- ---------------------------------------------------------------------
1237
-  (0.0ms) rollback transaction
1238
-  (0.0ms) begin transaction
1239
- --------------------------------------------------------
1240
- ForestLiana::SchemaAdapterTest: test_hasOne_relationship
1241
- --------------------------------------------------------
1242
-  (0.0ms) rollback transaction
1243
-  (0.1ms) begin transaction
1244
- ------------------------------------------------------------------------------------
1245
- ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
1246
- ------------------------------------------------------------------------------------
1247
-  (0.1ms) rollback transaction
1248
-  (0.1ms) begin transaction
1249
- -------------------------------------------------------------------------
1250
- ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
1251
- -------------------------------------------------------------------------
1252
-  (0.0ms) rollback transaction
1253
-  (0.1ms) begin transaction
1254
- ---------------------------------------------------------
1255
- ForestLiana::SchemaAdapterTest: test_hasMany_relationship
1256
- ---------------------------------------------------------
1257
-  (0.3ms) rollback transaction
1258
-  (0.1ms) begin transaction
1259
- -----------------------------------------------------------
1260
- ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
1261
- -----------------------------------------------------------
1262
395
   (0.1ms) rollback transaction