forest_liana 1.2.3 → 1.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 63fe87e797c46c64c8c5059f7054773fb12e817e
4
- data.tar.gz: 9568308c8af832ec57a25f9f20914489776adb28
3
+ metadata.gz: 65522d7ac20a108bfbe9cf9670775bdac5a9c4f7
4
+ data.tar.gz: 62cf805130476977ad2a43100998efea2e28781c
5
5
  SHA512:
6
- metadata.gz: 7d45f2a8f6516a1bdc2ed6e0b962533a170a104a6196090938f5d79da302bc37e8c514046d9314b14fc2ed7e2adbcdb318cfb29602c765d6e06972e9ac427dd4
7
- data.tar.gz: b42d6537705ab263df6942513fed9f6a8f6eeaa45ad9dd9d913b51ff0fc55ac1aeb00ffce43f37363d5dd27ebacff092ae49dd595439e3ad22116769d9baf3f7
6
+ metadata.gz: 82988dc221f349a1fd34eb5f7ff6455af77299cd827bf2de10a12a6eb39ed7453ae9d1cd43d3f1b025306844137f08c16b12e6c7d7bc8452615d94d5d31ed5b6
7
+ data.tar.gz: fb34fcae2db4436ac8434b4f8bbb76481d53e58d3bfa5dd0337a43afe284153fad5bbfb5dd9847008f3dcf008888ee13f98c46a5f450557d2ca0903f1b249218
@@ -66,13 +66,7 @@ module ForestLiana
66
66
  end
67
67
 
68
68
  def includes
69
- @resource
70
- .reflect_on_all_associations
71
- .select do |a|
72
- [:belongs_to, :has_one]
73
- .include?(a.macro) && !a.options[:polymorphic]
74
- end
75
- .map {|a| a.name.to_s }
69
+ SchemaUtils.one_associations(@resource).map {|a| a.name.to_s}
76
70
  end
77
71
 
78
72
  end
@@ -4,13 +4,30 @@ module ForestLiana
4
4
  def create
5
5
  user = ForestLiana.allowed_users.find do |allowed_user|
6
6
  allowed_user['email'] == params['email'] &&
7
+ allowed_user['outlines'].include?(params['outlineId']) &&
7
8
  BCrypt::Password.new(allowed_user['password']) == params['password']
8
9
  end
9
10
 
10
11
  if user
11
12
  token = JWT.encode({
12
13
  exp: Time.now.to_i + 2.weeks.to_i,
13
- data: serialized_user(user)
14
+ data: {
15
+ id: user['id'],
16
+ type: 'users',
17
+ data: {
18
+ email: user['email'],
19
+ first_name: user['first_name'],
20
+ last_name: user['last_name']
21
+ },
22
+ relationships: {
23
+ outlines: {
24
+ data: [{
25
+ type: 'outlines',
26
+ id: params['outlineId']
27
+ }]
28
+ }
29
+ }
30
+ }
14
31
  } , ForestLiana.auth_key, 'HS256')
15
32
 
16
33
  render json: { token: token }
@@ -18,20 +35,5 @@ module ForestLiana
18
35
  render nothing: true, status: 401
19
36
  end
20
37
  end
21
-
22
- private
23
-
24
- def serialized_user(user)
25
- {
26
- type: 'users',
27
- id: user[:id],
28
- data: {
29
- email: user[:email],
30
- first_name: user[:'first-name'] ,
31
- last_name: user[:'last-name']
32
- }
33
- }
34
- end
35
-
36
38
  end
37
39
  end
@@ -10,6 +10,7 @@ class ForestLiana::Model::Collection
10
10
  def initialize(attributes = {})
11
11
  @actions = []
12
12
  @is_searchable = true
13
+ @is_read_only = false
13
14
 
14
15
  attributes.each do |name, value|
15
16
  send("#{name}=", value)
@@ -14,15 +14,20 @@ module ForestLiana
14
14
  end
15
15
 
16
16
  def self.get_serializer_name(active_record_class)
17
- if active_record_class == ::Intercom::Conversation
17
+ if defined?(::Intercom::Conversation) &&
18
+ active_record_class == ::Intercom::Conversation
18
19
  "ForestLiana::IntercomConversationSerializer"
19
- elsif active_record_class == ::Intercom::User
20
+ elsif defined?(::Intercom::User) &&
21
+ active_record_class == ::Intercom::User
20
22
  "ForestLiana::IntercomAttributeSerializer"
21
- elsif active_record_class == ::Stripe::Charge
23
+ elsif defined?(::Stripe::Charge) &&
24
+ active_record_class == ::Stripe::Charge
22
25
  "ForestLiana::StripePaymentSerializer"
23
- elsif active_record_class == ::Stripe::Card
26
+ elsif defined?(::Stripe::Card) &&
27
+ active_record_class == ::Stripe::Card
24
28
  "ForestLiana::StripeCardSerializer"
25
- elsif active_record_class == ::Stripe::Invoice
29
+ elsif defined?(::Stripe::Invoice) &&
30
+ active_record_class == ::Stripe::Invoice
26
31
  "ForestLiana::StripeInvoiceSerializer"
27
32
  elsif active_record_class == ForestLiana::Model::Stat
28
33
  "ForestLiana::StatSerializer"
@@ -50,7 +55,7 @@ module ForestLiana
50
55
  end
51
56
 
52
57
  def type
53
- object.class.table_name.demodulize.dasherize
58
+ object.class.table_name.demodulize
54
59
  end
55
60
 
56
61
  def format_name(attribute_name)
@@ -58,7 +63,7 @@ module ForestLiana
58
63
  end
59
64
 
60
65
  def unformat_name(attribute_name)
61
- attribute_name.to_s.underscore
66
+ attribute_name.to_s
62
67
  end
63
68
 
64
69
  def relationship_self_link(attribute_name)
@@ -103,7 +108,7 @@ module ForestLiana
103
108
  }
104
109
  end
105
110
  end
106
- rescue TypeError
111
+ rescue TypeError, ActiveRecord::StatementInvalid
107
112
  puts "Cannot load the association #{attribute_name} on #{object.class.name} #{object.id}."
108
113
  end
109
114
  end
@@ -145,7 +150,13 @@ module ForestLiana
145
150
  end
146
151
 
147
152
  SchemaUtils.associations(active_record_class).each do |a|
148
- serializer.send(serializer_association(a), a.name)
153
+ serializer.send(serializer_association(a), a.name) {
154
+ if [:has_one, :belongs_to].include?(a.macro)
155
+ object.send(a.name).try(:reload)
156
+ else
157
+ []
158
+ end
159
+ }
149
160
  end
150
161
 
151
162
  # Intercom
@@ -24,7 +24,7 @@ module ForestLiana
24
24
  end
25
25
 
26
26
  def type
27
- 'stripe-cards'
27
+ 'stripe_cards'
28
28
  end
29
29
 
30
30
  def format_name(attribute_name)
@@ -32,7 +32,7 @@ module ForestLiana
32
32
  end
33
33
 
34
34
  def unformat_name(attribute_name)
35
- attribute_name.to_s.underscore
35
+ attribute_name.to_s
36
36
  end
37
37
 
38
38
  def relationship_self_link(attribute_name)
@@ -25,7 +25,7 @@ module ForestLiana
25
25
  end
26
26
 
27
27
  def type
28
- 'stripe-invoices'
28
+ 'stripe_invoices'
29
29
  end
30
30
 
31
31
  def format_name(attribute_name)
@@ -33,7 +33,7 @@ module ForestLiana
33
33
  end
34
34
 
35
35
  def unformat_name(attribute_name)
36
- attribute_name.to_s.underscore
36
+ attribute_name.to_s
37
37
  end
38
38
 
39
39
  def relationship_self_link(attribute_name)
@@ -16,7 +16,7 @@ module ForestLiana
16
16
  end
17
17
 
18
18
  def type
19
- 'stripe-payments'
19
+ 'stripe_payments'
20
20
  end
21
21
 
22
22
  def format_name(attribute_name)
@@ -24,7 +24,7 @@ module ForestLiana
24
24
  end
25
25
 
26
26
  def unformat_name(attribute_name)
27
- attribute_name.to_s.underscore
27
+ attribute_name.to_s
28
28
  end
29
29
 
30
30
  def relationship_self_link(attribute_name)
@@ -1,9 +1,19 @@
1
1
  class ForestLiana::Collection
2
2
  mattr_accessor :collection_name
3
+ mattr_accessor :is_read_only
4
+
5
+ def self.field(field, opts)
6
+ collection = ForestLiana.apimap.find do |x|
7
+ x.name == self.collection_name.try(:to_s)
8
+ end
9
+
10
+ collection.fields << opts.merge({ field: field }) if collection
11
+ end
3
12
 
4
13
  def self.fields(fields)
5
14
  collection = ForestLiana::Model::Collection.new({
6
15
  name: self.collection_name,
16
+ is_read_only: self.is_read_only,
7
17
  fields: fields
8
18
  })
9
19
 
@@ -6,10 +6,9 @@ module ForestLiana
6
6
  end
7
7
 
8
8
  def perform
9
+ @records = @resource.unscoped.includes(includes)
9
10
  @records = search_query
10
11
  @records = sort_query
11
-
12
- @records
13
12
  end
14
13
 
15
14
  def records
@@ -23,7 +22,7 @@ module ForestLiana
23
22
  private
24
23
 
25
24
  def search_query
26
- SearchQueryBuilder.new(@resource, @params).perform
25
+ SearchQueryBuilder.new(@records, @params).perform
27
26
  end
28
27
 
29
28
  def sort_query
@@ -123,7 +123,7 @@ module ForestLiana
123
123
  {
124
124
  field: association.name.to_s,
125
125
  type: get_type_for_association(association),
126
- reference: "#{association.klass.table_name.underscore}.id",
126
+ reference: "#{association.klass.table_name}.id",
127
127
  inverseOf: inverse_of(association)
128
128
  }
129
129
  end
@@ -7,6 +7,12 @@ module ForestLiana
7
7
  .select {|a| !polymorphic?(a)}
8
8
  end
9
9
 
10
+ def self.one_associations(active_record_class)
11
+ self.associations(active_record_class).select do |x|
12
+ [:has_one, :belongs_to].include?(x.macro)
13
+ end
14
+ end
15
+
10
16
  def self.find_model_from_table_name(table_name)
11
17
  ActiveRecord::Base.subclasses.find {|s| s.table_name == table_name}
12
18
  end
@@ -128,9 +128,12 @@ module ForestLiana
128
128
 
129
129
  operator, value = OperatorValueParser.parse(value)
130
130
 
131
+ where = "#{association.table_name}.#{subfield} #{operator}"
132
+ where += " '#{value}'" if value
133
+
131
134
  @records = @records
132
135
  .joins(field.to_sym)
133
- .where("#{association.table_name}.#{subfield} #{operator} '#{value}'")
136
+ .where(where)
134
137
  end
135
138
 
136
139
  def belongs_to_filter
@@ -29,7 +29,8 @@ module ForestLiana
29
29
  value = value.uniq if uniq
30
30
  value.send(@params[:aggregate].downcase, aggregate_field)
31
31
  else
32
- value.send(@params[:aggregate], aggregate_field, distinct: uniq)
32
+ value.send(@params[:aggregate].downcase, aggregate_field,
33
+ distinct: uniq)
33
34
  end
34
35
  end
35
36
 
@@ -77,9 +77,14 @@ More info at: https://github.com/ForestAdmin/forest-rails/releases/tag/1.2.0"
77
77
  @logger.warn "Forest cannot find your project secret key. " \
78
78
  "Please, run `rails g forest_liana:install`."
79
79
  else
80
- ForestLiana.allowed_users = JSON.parse(response.body)['data'].map do |d|
80
+ body = JSON.parse(response.body)['data']
81
+ ForestLiana.allowed_users = body.map do |d|
81
82
  user = d['attributes']
82
83
  user['id'] = d['id']
84
+ user['outlines'] = d['relationships']['outlines']['data'].map {
85
+ |x| x['id']
86
+ }
87
+
83
88
  user
84
89
  end
85
90
  end
@@ -1,9 +1,7 @@
1
1
  require 'rack/cors'
2
- require 'stripe'
3
2
  require 'jsonapi-serializers'
4
3
  require 'groupdate'
5
4
  require 'net/http'
6
- require 'intercom'
7
5
  require 'useragent'
8
6
  require 'jwt'
9
7
  require 'bcrypt'
@@ -1,3 +1,3 @@
1
1
  module ForestLiana
2
- VERSION = "1.2.3"
2
+ VERSION = "1.2.5"
3
3
  end
Binary file
@@ -41022,3 +41022,2012 @@ ForestLiana::ResourcesGetterTest: test_StringField_sort_by_field
41022
41022
  StringField Load (0.2ms) SELECT "string_fields".* FROM "string_fields" ORDER BY field DESC LIMIT 10 OFFSET 0
41023
41023
  StringField Load (0.3ms) SELECT "string_fields".* FROM "string_fields" ORDER BY field DESC
41024
41024
   (0.1ms) rollback transaction
41025
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
41026
+  (0.2ms) begin transaction
41027
+ Fixture Delete (1.6ms) DELETE FROM "belongs_to_fields"
41028
+ Fixture Insert (0.5ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (1, 1, 1)
41029
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (2, 2, 1)
41030
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (3, 3, 1)
41031
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (4, 4, 2)
41032
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (5, 5, 2)
41033
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (6, 6, 2)
41034
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (7, 7, 3)
41035
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (8, 8, 3)
41036
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (9, 9, 3)
41037
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (10, 10, 4)
41038
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (11, 11, 4)
41039
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (12, 12, 4)
41040
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (13, 13, 5)
41041
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (14, 14, 5)
41042
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (15, 15, 5)
41043
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (16, 16, 6)
41044
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (17, 17, 6)
41045
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (18, 18, 6)
41046
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (19, 19, 7)
41047
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (20, 20, 7)
41048
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (21, 21, 7)
41049
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (22, 22, 7)
41050
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (23, 23, 8)
41051
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (24, 24, 8)
41052
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (25, 25, 9)
41053
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (26, 26, 9)
41054
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (27, 27, 9)
41055
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (28, 28, 10)
41056
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (29, 29, 10)
41057
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (30, 30, 10)
41058
+ Fixture Delete (0.9ms) DELETE FROM "has_many_fields"
41059
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (1)
41060
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (2)
41061
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (3)
41062
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (4)
41063
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (5, 3)
41064
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (6, 2)
41065
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (7)
41066
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (8, 2)
41067
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (9)
41068
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (10)
41069
+ Fixture Delete (0.3ms) DELETE FROM "has_many_through_fields"
41070
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (1)
41071
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (2)
41072
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (3)
41073
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (4)
41074
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (5)
41075
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (6)
41076
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (7)
41077
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (8)
41078
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (9)
41079
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (10)
41080
+ Fixture Delete (0.3ms) DELETE FROM "has_one_fields"
41081
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (1)
41082
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (2)
41083
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (3)
41084
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (4)
41085
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (5)
41086
+ Fixture Insert (0.2ms) INSERT INTO "has_one_fields" ("id") VALUES (6)
41087
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (7)
41088
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (8)
41089
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (9)
41090
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (10)
41091
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (11)
41092
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (12)
41093
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (13)
41094
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (14)
41095
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (15)
41096
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (16)
41097
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (17)
41098
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (18)
41099
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (19)
41100
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (20)
41101
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (21)
41102
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (22)
41103
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (23)
41104
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (24)
41105
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (25)
41106
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (26)
41107
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (27)
41108
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (28)
41109
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (29)
41110
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (30)
41111
+ Fixture Delete (0.4ms) DELETE FROM "string_fields"
41112
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (1, 'Test 1')
41113
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (2, 'Test 2')
41114
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (3, 'Test 3')
41115
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (4, 'Test 4')
41116
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (5, 'Test 5')
41117
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (6, 'Test 6')
41118
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (7, 'Test 7')
41119
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (8, 'Test 8')
41120
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (9, 'Test 9')
41121
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (10, 'Test 10')
41122
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (11, 'Test 11')
41123
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (12, 'Test 12')
41124
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (13, 'Test 13')
41125
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (14, 'Test 14')
41126
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (15, 'Test 15')
41127
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (16, 'Test 16')
41128
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (17, 'Test 17')
41129
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (18, 'Test 18')
41130
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (19, 'Test 19')
41131
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (20, 'Test 20')
41132
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (21, 'Test 21')
41133
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (22, 'Test 22')
41134
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (23, 'Test 23')
41135
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (24, 'Test 24')
41136
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (25, 'Test 25')
41137
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (26, 'Test 26')
41138
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (27, 'Test 27')
41139
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (28, 'Test 28')
41140
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (29, 'Test 29')
41141
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (30, 'Test 30')
41142
+  (0.9ms) commit transaction
41143
+  (0.1ms) begin transaction
41144
+ ----------------------------------------------------------------------------------
41145
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
41146
+ ----------------------------------------------------------------------------------
41147
+  (0.1ms) rollback transaction
41148
+  (0.0ms) begin transaction
41149
+ -----------------------------------------------------------
41150
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
41151
+ -----------------------------------------------------------
41152
+  (0.0ms) rollback transaction
41153
+  (0.0ms) begin transaction
41154
+ --------------------------------------------------------------------------
41155
+ ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
41156
+ --------------------------------------------------------------------------
41157
+  (0.1ms) rollback transaction
41158
+  (0.2ms) begin transaction
41159
+ ------------------------------------------------------------------------------------
41160
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
41161
+ ------------------------------------------------------------------------------------
41162
+  (0.1ms) rollback transaction
41163
+  (0.0ms) begin transaction
41164
+ --------------------------------------------------------------------------
41165
+ ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
41166
+ --------------------------------------------------------------------------
41167
+  (0.1ms) rollback transaction
41168
+  (0.0ms) begin transaction
41169
+ --------------------------------------------------------
41170
+ ForestLiana::SchemaAdapterTest: test_hasOne_relationship
41171
+ --------------------------------------------------------
41172
+  (0.1ms) rollback transaction
41173
+  (0.1ms) begin transaction
41174
+ -------------------------------------------------------------------------
41175
+ ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
41176
+ -------------------------------------------------------------------------
41177
+  (0.0ms) rollback transaction
41178
+  (0.0ms) begin transaction
41179
+ -------------------------------------------------------------------------
41180
+ ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
41181
+ -------------------------------------------------------------------------
41182
+  (0.0ms) rollback transaction
41183
+  (0.1ms) begin transaction
41184
+ ---------------------------------------------------------------------
41185
+ ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
41186
+ ---------------------------------------------------------------------
41187
+  (0.0ms) rollback transaction
41188
+  (0.0ms) begin transaction
41189
+ ------------------------------------------------------------------------
41190
+ ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
41191
+ ------------------------------------------------------------------------
41192
+  (0.0ms) rollback transaction
41193
+  (0.1ms) begin transaction
41194
+ ---------------------------------------------------------
41195
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationship
41196
+ ---------------------------------------------------------
41197
+  (0.0ms) rollback transaction
41198
+  (0.1ms) begin transaction
41199
+ ---------------------------------------------------------------------------
41200
+ ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
41201
+ ---------------------------------------------------------------------------
41202
+  (0.1ms) rollback transaction
41203
+  (0.0ms) begin transaction
41204
+ ---------------------------
41205
+ ForestLianaTest: test_truth
41206
+ ---------------------------
41207
+  (0.0ms) rollback transaction
41208
+  (0.1ms) begin transaction
41209
+ ---------------------------------------------------------------------
41210
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_many_association
41211
+ ---------------------------------------------------------------------
41212
+ HasManyField Load (0.3ms) SELECT has_many_fields.*,
41213
+ COUNT(belongs_to_fields.id)
41214
+ belongs_to_fields_has_many_count FROM "has_many_fields" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_many_field_id" = "has_many_fields"."id" GROUP BY has_many_fields.id ORDER BY belongs_to_fields_has_many_count DESC LIMIT 10 OFFSET 0
41215
+ BelongsToField Load (0.2ms) SELECT "belongs_to_fields".* FROM "belongs_to_fields" WHERE "belongs_to_fields"."has_many_field_id" IN (7, 1, 2, 3, 4, 5, 6, 9, 10, 8)
41216
+  (0.1ms) SELECT COUNT(*) FROM "has_many_fields"
41217
+  (0.1ms) rollback transaction
41218
+  (0.0ms) begin transaction
41219
+ -----------------------------------------------------------------------------
41220
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_many_through_association
41221
+ -----------------------------------------------------------------------------
41222
+ HasManyThroughField Load (0.2ms) SELECT has_many_through_fields.*,
41223
+ COUNT(belongs_to_fields.id)
41224
+ belongs_to_fields_has_many_count FROM "has_many_through_fields" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."has_many_through_field_id" = "has_many_through_fields"."id" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_many_field_id" = "has_many_fields"."id" GROUP BY has_many_through_fields.id ORDER BY belongs_to_fields_has_many_count DESC LIMIT 10 OFFSET 0
41225
+ HasManyField Load (0.2ms) SELECT "has_many_fields".* FROM "has_many_fields" WHERE "has_many_fields"."has_many_through_field_id" IN (2, 3, 1, 4, 5, 6, 7, 8, 9, 10)
41226
+ BelongsToField Load (0.2ms) SELECT "belongs_to_fields".* FROM "belongs_to_fields" WHERE "belongs_to_fields"."has_many_field_id" IN (6, 8, 5)
41227
+  (0.1ms) SELECT COUNT(*) FROM "has_many_through_fields"
41228
+  (0.0ms) rollback transaction
41229
+  (0.0ms) begin transaction
41230
+ ----------------------------------------------------------------
41231
+ ForestLiana::ResourcesGetterTest: test_StringField_sort_by_field
41232
+ ----------------------------------------------------------------
41233
+ StringField Load (0.2ms) SELECT "string_fields".* FROM "string_fields" ORDER BY field DESC LIMIT 10 OFFSET 0
41234
+  (0.0ms) SELECT COUNT(*) FROM "string_fields"
41235
+  (0.0ms) rollback transaction
41236
+  (0.0ms) begin transaction
41237
+ -----------------------------------------------------------------
41238
+ ForestLiana::ResourcesGetterTest: test_StringField_page_1_size_15
41239
+ -----------------------------------------------------------------
41240
+ StringField Load (0.1ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC LIMIT 15 OFFSET 0
41241
+  (0.0ms) SELECT COUNT(*) FROM "string_fields"
41242
+  (0.2ms) rollback transaction
41243
+  (0.0ms) begin transaction
41244
+ -----------------------------------------------------------------
41245
+ ForestLiana::ResourcesGetterTest: test_StringField_page_2_size_10
41246
+ -----------------------------------------------------------------
41247
+ StringField Load (0.1ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC LIMIT 10 OFFSET 10
41248
+  (0.0ms) SELECT COUNT(*) FROM "string_fields"
41249
+  (0.1ms) rollback transaction
41250
+  (0.0ms) begin transaction
41251
+ --------------------------------------------------------------------
41252
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_one_association
41253
+ --------------------------------------------------------------------
41254
+ SQL (0.3ms) SELECT "has_one_fields"."id" AS t0_r0, "belongs_to_fields"."id" AS t1_r0, "belongs_to_fields"."has_one_field_id" AS t1_r1, "belongs_to_fields"."has_many_class_name_field_id" AS t1_r2, "belongs_to_fields"."has_many_field_id" AS t1_r3 FROM "has_one_fields" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_one_field_id" = "has_one_fields"."id" ORDER BY belongs_to_fields.id DESC LIMIT 10 OFFSET 0
41255
+  (0.1ms) SELECT COUNT(*) FROM "has_one_fields"
41256
+  (0.1ms) rollback transaction
41257
+  (0.0ms) begin transaction
41258
+ -----------------------------------------------------------------------
41259
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_belongs_to_association
41260
+ -----------------------------------------------------------------------
41261
+ SQL (0.3ms) SELECT "belongs_to_fields"."id" AS t0_r0, "belongs_to_fields"."has_one_field_id" AS t0_r1, "belongs_to_fields"."has_many_class_name_field_id" AS t0_r2, "belongs_to_fields"."has_many_field_id" AS t0_r3, "has_one_fields"."id" AS t1_r0 FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" ORDER BY has_one_fields.id ASC LIMIT 10 OFFSET 0
41262
+  (0.1ms) SELECT COUNT(*) FROM "belongs_to_fields"
41263
+  (0.1ms) rollback transaction
41264
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
41265
+  (0.1ms) begin transaction
41266
+ Fixture Delete (1.5ms) DELETE FROM "belongs_to_fields"
41267
+ Fixture Insert (0.4ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (1, 1, 1)
41268
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (2, 2, 1)
41269
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (3, 3, 1)
41270
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (4, 4, 2)
41271
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (5, 5, 2)
41272
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (6, 6, 2)
41273
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (7, 7, 3)
41274
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (8, 8, 3)
41275
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (9, 9, 3)
41276
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (10, 10, 4)
41277
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (11, 11, 4)
41278
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (12, 12, 4)
41279
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (13, 13, 5)
41280
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (14, 14, 5)
41281
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (15, 15, 5)
41282
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (16, 16, 6)
41283
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (17, 17, 6)
41284
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (18, 18, 6)
41285
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (19, 19, 7)
41286
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (20, 20, 7)
41287
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (21, 21, 7)
41288
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (22, 22, 7)
41289
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (23, 23, 8)
41290
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (24, 24, 8)
41291
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (25, 25, 9)
41292
+ Fixture Insert (0.2ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (26, 26, 9)
41293
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (27, 27, 9)
41294
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (28, 28, 10)
41295
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (29, 29, 10)
41296
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (30, 30, 10)
41297
+ Fixture Delete (0.6ms) DELETE FROM "has_many_fields"
41298
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (1)
41299
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (2)
41300
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (3)
41301
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (4)
41302
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (5, 3)
41303
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (6, 2)
41304
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (7)
41305
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (8, 2)
41306
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (9)
41307
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (10)
41308
+ Fixture Delete (0.4ms) DELETE FROM "has_many_through_fields"
41309
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (1)
41310
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (2)
41311
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (3)
41312
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (4)
41313
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (5)
41314
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (6)
41315
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (7)
41316
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (8)
41317
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (9)
41318
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (10)
41319
+ Fixture Delete (0.4ms) DELETE FROM "has_one_fields"
41320
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (1)
41321
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (2)
41322
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (3)
41323
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (4)
41324
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (5)
41325
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (6)
41326
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (7)
41327
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (8)
41328
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (9)
41329
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (10)
41330
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (11)
41331
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (12)
41332
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (13)
41333
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (14)
41334
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (15)
41335
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (16)
41336
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (17)
41337
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (18)
41338
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (19)
41339
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (20)
41340
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (21)
41341
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (22)
41342
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (23)
41343
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (24)
41344
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (25)
41345
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (26)
41346
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (27)
41347
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (28)
41348
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (29)
41349
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (30)
41350
+ Fixture Delete (0.4ms) DELETE FROM "string_fields"
41351
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (1, 'Test 1')
41352
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (2, 'Test 2')
41353
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (3, 'Test 3')
41354
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (4, 'Test 4')
41355
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (5, 'Test 5')
41356
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (6, 'Test 6')
41357
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (7, 'Test 7')
41358
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (8, 'Test 8')
41359
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (9, 'Test 9')
41360
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (10, 'Test 10')
41361
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (11, 'Test 11')
41362
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (12, 'Test 12')
41363
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (13, 'Test 13')
41364
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (14, 'Test 14')
41365
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (15, 'Test 15')
41366
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (16, 'Test 16')
41367
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (17, 'Test 17')
41368
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (18, 'Test 18')
41369
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (19, 'Test 19')
41370
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (20, 'Test 20')
41371
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (21, 'Test 21')
41372
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (22, 'Test 22')
41373
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (23, 'Test 23')
41374
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (24, 'Test 24')
41375
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (25, 'Test 25')
41376
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (26, 'Test 26')
41377
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (27, 'Test 27')
41378
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (28, 'Test 28')
41379
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (29, 'Test 29')
41380
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (30, 'Test 30')
41381
+  (0.8ms) commit transaction
41382
+  (0.1ms) begin transaction
41383
+ ---------------------------
41384
+ ForestLianaTest: test_truth
41385
+ ---------------------------
41386
+  (0.0ms) rollback transaction
41387
+  (0.1ms) begin transaction
41388
+ ---------------------------------------------------------------------
41389
+ ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
41390
+ ---------------------------------------------------------------------
41391
+  (0.1ms) rollback transaction
41392
+  (0.1ms) begin transaction
41393
+ -------------------------------------------------------------------------
41394
+ ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
41395
+ -------------------------------------------------------------------------
41396
+  (0.1ms) rollback transaction
41397
+  (0.2ms) begin transaction
41398
+ ----------------------------------------------------------------------------------
41399
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
41400
+ ----------------------------------------------------------------------------------
41401
+  (0.0ms) rollback transaction
41402
+  (0.0ms) begin transaction
41403
+ ------------------------------------------------------------------------------------
41404
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
41405
+ ------------------------------------------------------------------------------------
41406
+  (0.2ms) rollback transaction
41407
+  (0.1ms) begin transaction
41408
+ -------------------------------------------------------------------------
41409
+ ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
41410
+ -------------------------------------------------------------------------
41411
+  (0.0ms) rollback transaction
41412
+  (0.0ms) begin transaction
41413
+ --------------------------------------------------------------------------
41414
+ ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
41415
+ --------------------------------------------------------------------------
41416
+  (0.2ms) rollback transaction
41417
+  (0.1ms) begin transaction
41418
+ ---------------------------------------------------------------------------
41419
+ ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
41420
+ ---------------------------------------------------------------------------
41421
+  (0.1ms) rollback transaction
41422
+  (0.1ms) begin transaction
41423
+ -----------------------------------------------------------
41424
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
41425
+ -----------------------------------------------------------
41426
+  (0.3ms) rollback transaction
41427
+  (0.0ms) begin transaction
41428
+ ------------------------------------------------------------------------
41429
+ ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
41430
+ ------------------------------------------------------------------------
41431
+  (0.0ms) rollback transaction
41432
+  (0.1ms) begin transaction
41433
+ ---------------------------------------------------------
41434
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationship
41435
+ ---------------------------------------------------------
41436
+  (0.0ms) rollback transaction
41437
+  (0.0ms) begin transaction
41438
+ --------------------------------------------------------------------------
41439
+ ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
41440
+ --------------------------------------------------------------------------
41441
+  (0.0ms) rollback transaction
41442
+  (0.0ms) begin transaction
41443
+ --------------------------------------------------------
41444
+ ForestLiana::SchemaAdapterTest: test_hasOne_relationship
41445
+ --------------------------------------------------------
41446
+  (0.0ms) rollback transaction
41447
+  (0.0ms) begin transaction
41448
+ -----------------------------------------------------------------
41449
+ ForestLiana::ResourcesGetterTest: test_StringField_page_2_size_10
41450
+ -----------------------------------------------------------------
41451
+ StringField Load (0.2ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC LIMIT 10 OFFSET 10
41452
+  (0.1ms) SELECT COUNT(*) FROM "string_fields"
41453
+  (0.1ms) rollback transaction
41454
+  (0.0ms) begin transaction
41455
+ -----------------------------------------------------------------------------
41456
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_many_through_association
41457
+ -----------------------------------------------------------------------------
41458
+ HasManyThroughField Load (0.3ms) SELECT has_many_through_fields.*,
41459
+ COUNT(belongs_to_fields.id)
41460
+ belongs_to_fields_has_many_count FROM "has_many_through_fields" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."has_many_through_field_id" = "has_many_through_fields"."id" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_many_field_id" = "has_many_fields"."id" GROUP BY has_many_through_fields.id ORDER BY belongs_to_fields_has_many_count DESC LIMIT 10 OFFSET 0
41461
+ HasManyField Load (0.2ms) SELECT "has_many_fields".* FROM "has_many_fields" WHERE "has_many_fields"."has_many_through_field_id" IN (2, 3, 1, 4, 5, 6, 7, 8, 9, 10)
41462
+ BelongsToField Load (0.2ms) SELECT "belongs_to_fields".* FROM "belongs_to_fields" WHERE "belongs_to_fields"."has_many_field_id" IN (6, 8, 5)
41463
+  (0.1ms) SELECT COUNT(*) FROM "has_many_through_fields"
41464
+  (0.1ms) rollback transaction
41465
+  (0.1ms) begin transaction
41466
+ ---------------------------------------------------------------------
41467
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_many_association
41468
+ ---------------------------------------------------------------------
41469
+ HasManyField Load (0.3ms) SELECT has_many_fields.*,
41470
+ COUNT(belongs_to_fields.id)
41471
+ belongs_to_fields_has_many_count FROM "has_many_fields" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_many_field_id" = "has_many_fields"."id" GROUP BY has_many_fields.id ORDER BY belongs_to_fields_has_many_count DESC LIMIT 10 OFFSET 0
41472
+ BelongsToField Load (0.3ms) SELECT "belongs_to_fields".* FROM "belongs_to_fields" WHERE "belongs_to_fields"."has_many_field_id" IN (7, 1, 2, 3, 4, 5, 6, 9, 10, 8)
41473
+  (0.1ms) SELECT COUNT(*) FROM "has_many_fields"
41474
+  (0.1ms) rollback transaction
41475
+  (0.1ms) begin transaction
41476
+ ----------------------------------------------------------------
41477
+ ForestLiana::ResourcesGetterTest: test_StringField_sort_by_field
41478
+ ----------------------------------------------------------------
41479
+ StringField Load (0.2ms) SELECT "string_fields".* FROM "string_fields" ORDER BY field DESC LIMIT 10 OFFSET 0
41480
+  (0.1ms) SELECT COUNT(*) FROM "string_fields"
41481
+  (0.1ms) rollback transaction
41482
+  (0.0ms) begin transaction
41483
+ --------------------------------------------------------------------
41484
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_one_association
41485
+ --------------------------------------------------------------------
41486
+ SQL (0.4ms) SELECT "has_one_fields"."id" AS t0_r0, "belongs_to_fields"."id" AS t1_r0, "belongs_to_fields"."has_one_field_id" AS t1_r1, "belongs_to_fields"."has_many_class_name_field_id" AS t1_r2, "belongs_to_fields"."has_many_field_id" AS t1_r3 FROM "has_one_fields" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_one_field_id" = "has_one_fields"."id" ORDER BY belongs_to_fields.id DESC LIMIT 10 OFFSET 0
41487
+  (0.1ms) SELECT COUNT(*) FROM "has_one_fields"
41488
+  (0.1ms) rollback transaction
41489
+  (0.1ms) begin transaction
41490
+ -----------------------------------------------------------------------
41491
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_belongs_to_association
41492
+ -----------------------------------------------------------------------
41493
+ SQL (0.4ms) SELECT "belongs_to_fields"."id" AS t0_r0, "belongs_to_fields"."has_one_field_id" AS t0_r1, "belongs_to_fields"."has_many_class_name_field_id" AS t0_r2, "belongs_to_fields"."has_many_field_id" AS t0_r3, "has_one_fields"."id" AS t1_r0 FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" ORDER BY has_one_fields.id ASC LIMIT 10 OFFSET 0
41494
+  (0.1ms) SELECT COUNT(*) FROM "belongs_to_fields"
41495
+  (0.1ms) rollback transaction
41496
+  (0.1ms) begin transaction
41497
+ -----------------------------------------------------------------
41498
+ ForestLiana::ResourcesGetterTest: test_StringField_page_1_size_15
41499
+ -----------------------------------------------------------------
41500
+ StringField Load (0.2ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC LIMIT 15 OFFSET 0
41501
+  (0.1ms) SELECT COUNT(*) FROM "string_fields"
41502
+  (0.0ms) rollback transaction
41503
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
41504
+  (0.1ms) begin transaction
41505
+ Fixture Delete (0.4ms) DELETE FROM "belongs_to_fields"
41506
+ Fixture Insert (0.2ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (1, 1, 1)
41507
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (2, 2, 1)
41508
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (3, 3, 1)
41509
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (4, 4, 2)
41510
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (5, 5, 2)
41511
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (6, 6, 2)
41512
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (7, 7, 3)
41513
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (8, 8, 3)
41514
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (9, 9, 3)
41515
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (10, 10, 4)
41516
+ Fixture Insert (0.2ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (11, 11, 4)
41517
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (12, 12, 4)
41518
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (13, 13, 5)
41519
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (14, 14, 5)
41520
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (15, 15, 5)
41521
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (16, 16, 6)
41522
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (17, 17, 6)
41523
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (18, 18, 6)
41524
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (19, 19, 7)
41525
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (20, 20, 7)
41526
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (21, 21, 7)
41527
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (22, 22, 7)
41528
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (23, 23, 8)
41529
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (24, 24, 8)
41530
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (25, 25, 9)
41531
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (26, 26, 9)
41532
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (27, 27, 9)
41533
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (28, 28, 10)
41534
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (29, 29, 10)
41535
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (30, 30, 10)
41536
+ Fixture Delete (0.1ms) DELETE FROM "has_many_fields"
41537
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (1)
41538
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (2)
41539
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (3)
41540
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (4)
41541
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (5, 3)
41542
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (6, 2)
41543
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (7)
41544
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (8, 2)
41545
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (9)
41546
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (10)
41547
+ Fixture Delete (0.1ms) DELETE FROM "has_many_through_fields"
41548
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (1)
41549
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (2)
41550
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (3)
41551
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (4)
41552
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (5)
41553
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (6)
41554
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (7)
41555
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (8)
41556
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (9)
41557
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (10)
41558
+ Fixture Delete (0.1ms) DELETE FROM "has_one_fields"
41559
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (1)
41560
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (2)
41561
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (3)
41562
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (4)
41563
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (5)
41564
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (6)
41565
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (7)
41566
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (8)
41567
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (9)
41568
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (10)
41569
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (11)
41570
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (12)
41571
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (13)
41572
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (14)
41573
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (15)
41574
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (16)
41575
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (17)
41576
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (18)
41577
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (19)
41578
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (20)
41579
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (21)
41580
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (22)
41581
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (23)
41582
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (24)
41583
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (25)
41584
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (26)
41585
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (27)
41586
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (28)
41587
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (29)
41588
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (30)
41589
+ Fixture Delete (0.1ms) DELETE FROM "string_fields"
41590
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (1, 'Test 1')
41591
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (2, 'Test 2')
41592
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (3, 'Test 3')
41593
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (4, 'Test 4')
41594
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (5, 'Test 5')
41595
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (6, 'Test 6')
41596
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (7, 'Test 7')
41597
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (8, 'Test 8')
41598
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (9, 'Test 9')
41599
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (10, 'Test 10')
41600
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (11, 'Test 11')
41601
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (12, 'Test 12')
41602
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (13, 'Test 13')
41603
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (14, 'Test 14')
41604
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (15, 'Test 15')
41605
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (16, 'Test 16')
41606
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (17, 'Test 17')
41607
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (18, 'Test 18')
41608
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (19, 'Test 19')
41609
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (20, 'Test 20')
41610
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (21, 'Test 21')
41611
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (22, 'Test 22')
41612
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (23, 'Test 23')
41613
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (24, 'Test 24')
41614
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (25, 'Test 25')
41615
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (26, 'Test 26')
41616
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (27, 'Test 27')
41617
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (28, 'Test 28')
41618
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (29, 'Test 29')
41619
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (30, 'Test 30')
41620
+  (1.6ms) commit transaction
41621
+  (0.1ms) begin transaction
41622
+ --------------------------------------------------------------------
41623
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_one_association
41624
+ --------------------------------------------------------------------
41625
+ SQL (0.4ms) SELECT "has_one_fields"."id" AS t0_r0, "belongs_to_fields"."id" AS t1_r0, "belongs_to_fields"."has_one_field_id" AS t1_r1, "belongs_to_fields"."has_many_class_name_field_id" AS t1_r2, "belongs_to_fields"."has_many_field_id" AS t1_r3 FROM "has_one_fields" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_one_field_id" = "has_one_fields"."id" ORDER BY belongs_to_fields.id DESC LIMIT 10 OFFSET 0
41626
+  (0.1ms) SELECT COUNT(*) FROM "has_one_fields"
41627
+  (0.1ms) rollback transaction
41628
+  (0.1ms) begin transaction
41629
+ ---------------------------------------------------------------------
41630
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_many_association
41631
+ ---------------------------------------------------------------------
41632
+ HasManyField Load (0.4ms) SELECT has_many_fields.*,
41633
+ COUNT(belongs_to_fields.id)
41634
+ belongs_to_fields_has_many_count FROM "has_many_fields" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_many_field_id" = "has_many_fields"."id" GROUP BY has_many_fields.id ORDER BY belongs_to_fields_has_many_count DESC LIMIT 10 OFFSET 0
41635
+ BelongsToField Load (0.3ms) SELECT "belongs_to_fields".* FROM "belongs_to_fields" WHERE "belongs_to_fields"."has_many_field_id" IN (7, 1, 2, 3, 4, 5, 6, 9, 10, 8)
41636
+  (0.1ms) SELECT COUNT(*) FROM "has_many_fields"
41637
+  (0.1ms) rollback transaction
41638
+  (0.1ms) begin transaction
41639
+ -----------------------------------------------------------------------------
41640
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_many_through_association
41641
+ -----------------------------------------------------------------------------
41642
+ HasManyThroughField Load (0.3ms) SELECT has_many_through_fields.*,
41643
+ COUNT(belongs_to_fields.id)
41644
+ belongs_to_fields_has_many_count FROM "has_many_through_fields" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."has_many_through_field_id" = "has_many_through_fields"."id" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_many_field_id" = "has_many_fields"."id" GROUP BY has_many_through_fields.id ORDER BY belongs_to_fields_has_many_count DESC LIMIT 10 OFFSET 0
41645
+ HasManyField Load (0.2ms) SELECT "has_many_fields".* FROM "has_many_fields" WHERE "has_many_fields"."has_many_through_field_id" IN (2, 3, 1, 4, 5, 6, 7, 8, 9, 10)
41646
+ BelongsToField Load (0.3ms) SELECT "belongs_to_fields".* FROM "belongs_to_fields" WHERE "belongs_to_fields"."has_many_field_id" IN (6, 8, 5)
41647
+  (0.1ms) SELECT COUNT(*) FROM "has_many_through_fields"
41648
+  (0.1ms) rollback transaction
41649
+  (0.1ms) begin transaction
41650
+ -----------------------------------------------------------------
41651
+ ForestLiana::ResourcesGetterTest: test_StringField_page_2_size_10
41652
+ -----------------------------------------------------------------
41653
+ StringField Load (0.1ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC LIMIT 10 OFFSET 10
41654
+  (0.1ms) SELECT COUNT(*) FROM "string_fields"
41655
+  (0.1ms) rollback transaction
41656
+  (0.1ms) begin transaction
41657
+ -----------------------------------------------------------------------
41658
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_belongs_to_association
41659
+ -----------------------------------------------------------------------
41660
+ SQL (0.2ms) SELECT "belongs_to_fields"."id" AS t0_r0, "belongs_to_fields"."has_one_field_id" AS t0_r1, "belongs_to_fields"."has_many_class_name_field_id" AS t0_r2, "belongs_to_fields"."has_many_field_id" AS t0_r3, "has_one_fields"."id" AS t1_r0 FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" ORDER BY has_one_fields.id ASC LIMIT 10 OFFSET 0
41661
+  (0.1ms) SELECT COUNT(*) FROM "belongs_to_fields"
41662
+  (0.1ms) rollback transaction
41663
+  (0.1ms) begin transaction
41664
+ -----------------------------------------------------------------
41665
+ ForestLiana::ResourcesGetterTest: test_StringField_page_1_size_15
41666
+ -----------------------------------------------------------------
41667
+ StringField Load (0.1ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC LIMIT 15 OFFSET 0
41668
+  (0.0ms) SELECT COUNT(*) FROM "string_fields"
41669
+  (0.0ms) rollback transaction
41670
+  (0.0ms) begin transaction
41671
+ ----------------------------------------------------------------
41672
+ ForestLiana::ResourcesGetterTest: test_StringField_sort_by_field
41673
+ ----------------------------------------------------------------
41674
+ StringField Load (0.2ms) SELECT "string_fields".* FROM "string_fields" ORDER BY field DESC LIMIT 10 OFFSET 0
41675
+  (0.0ms) SELECT COUNT(*) FROM "string_fields"
41676
+  (0.0ms) rollback transaction
41677
+  (0.0ms) begin transaction
41678
+ ---------------------------
41679
+ ForestLianaTest: test_truth
41680
+ ---------------------------
41681
+  (0.0ms) rollback transaction
41682
+  (0.0ms) begin transaction
41683
+ ------------------------------------------------------------------------
41684
+ ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
41685
+ ------------------------------------------------------------------------
41686
+  (0.1ms) rollback transaction
41687
+  (0.1ms) begin transaction
41688
+ -------------------------------------------------------------------------
41689
+ ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
41690
+ -------------------------------------------------------------------------
41691
+  (0.1ms) rollback transaction
41692
+  (0.1ms) begin transaction
41693
+ -----------------------------------------------------------
41694
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
41695
+ -----------------------------------------------------------
41696
+  (0.1ms) rollback transaction
41697
+  (0.0ms) begin transaction
41698
+ ---------------------------------------------------------------------------
41699
+ ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
41700
+ ---------------------------------------------------------------------------
41701
+  (0.0ms) rollback transaction
41702
+  (0.0ms) begin transaction
41703
+ ---------------------------------------------------------
41704
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationship
41705
+ ---------------------------------------------------------
41706
+  (0.0ms) rollback transaction
41707
+  (0.0ms) begin transaction
41708
+ --------------------------------------------------------
41709
+ ForestLiana::SchemaAdapterTest: test_hasOne_relationship
41710
+ --------------------------------------------------------
41711
+  (0.0ms) rollback transaction
41712
+  (0.0ms) begin transaction
41713
+ ------------------------------------------------------------------------------------
41714
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
41715
+ ------------------------------------------------------------------------------------
41716
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
41717
+  (0.1ms) begin transaction
41718
+ Fixture Delete (0.3ms) DELETE FROM "belongs_to_fields"
41719
+ Fixture Insert (0.3ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (1, 1, 1)
41720
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (2, 2, 1)
41721
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (3, 3, 1)
41722
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (4, 4, 2)
41723
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (5, 5, 2)
41724
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (6, 6, 2)
41725
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (7, 7, 3)
41726
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (8, 8, 3)
41727
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (9, 9, 3)
41728
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (10, 10, 4)
41729
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (11, 11, 4)
41730
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (12, 12, 4)
41731
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (13, 13, 5)
41732
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (14, 14, 5)
41733
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (15, 15, 5)
41734
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (16, 16, 6)
41735
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (17, 17, 6)
41736
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (18, 18, 6)
41737
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (19, 19, 7)
41738
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (20, 20, 7)
41739
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (21, 21, 7)
41740
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (22, 22, 7)
41741
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (23, 23, 8)
41742
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (24, 24, 8)
41743
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (25, 25, 9)
41744
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (26, 26, 9)
41745
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (27, 27, 9)
41746
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (28, 28, 10)
41747
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (29, 29, 10)
41748
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (30, 30, 10)
41749
+ Fixture Delete (0.1ms) DELETE FROM "has_many_fields"
41750
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (1)
41751
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (2)
41752
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (3)
41753
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (4)
41754
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (5, 3)
41755
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (6, 2)
41756
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (7)
41757
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (8, 2)
41758
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (9)
41759
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (10)
41760
+ Fixture Delete (0.1ms) DELETE FROM "has_many_through_fields"
41761
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (1)
41762
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (2)
41763
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (3)
41764
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (4)
41765
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (5)
41766
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (6)
41767
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (7)
41768
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (8)
41769
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (9)
41770
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (10)
41771
+ Fixture Delete (0.1ms) DELETE FROM "has_one_fields"
41772
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (1)
41773
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (2)
41774
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (3)
41775
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (4)
41776
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (5)
41777
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (6)
41778
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (7)
41779
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (8)
41780
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (9)
41781
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (10)
41782
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (11)
41783
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (12)
41784
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (13)
41785
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (14)
41786
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (15)
41787
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (16)
41788
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (17)
41789
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (18)
41790
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (19)
41791
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (20)
41792
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (21)
41793
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (22)
41794
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (23)
41795
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (24)
41796
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (25)
41797
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (26)
41798
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (27)
41799
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (28)
41800
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (29)
41801
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (30)
41802
+ Fixture Delete (0.1ms) DELETE FROM "string_fields"
41803
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (1, 'Test 1')
41804
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (2, 'Test 2')
41805
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (3, 'Test 3')
41806
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (4, 'Test 4')
41807
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (5, 'Test 5')
41808
+ Fixture Insert (0.2ms) INSERT INTO "string_fields" ("id", "field") VALUES (6, 'Test 6')
41809
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (7, 'Test 7')
41810
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (8, 'Test 8')
41811
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (9, 'Test 9')
41812
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (10, 'Test 10')
41813
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (11, 'Test 11')
41814
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (12, 'Test 12')
41815
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (13, 'Test 13')
41816
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (14, 'Test 14')
41817
+ Fixture Insert (0.2ms) INSERT INTO "string_fields" ("id", "field") VALUES (15, 'Test 15')
41818
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (16, 'Test 16')
41819
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (17, 'Test 17')
41820
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (18, 'Test 18')
41821
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (19, 'Test 19')
41822
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (20, 'Test 20')
41823
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (21, 'Test 21')
41824
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (22, 'Test 22')
41825
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (23, 'Test 23')
41826
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (24, 'Test 24')
41827
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (25, 'Test 25')
41828
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (26, 'Test 26')
41829
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (27, 'Test 27')
41830
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (28, 'Test 28')
41831
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (29, 'Test 29')
41832
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (30, 'Test 30')
41833
+  (1.5ms) commit transaction
41834
+  (0.1ms) begin transaction
41835
+ ------------------------------------------------------------------------------------
41836
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
41837
+ ------------------------------------------------------------------------------------
41838
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
41839
+  (0.1ms) begin transaction
41840
+ Fixture Delete (0.3ms) DELETE FROM "belongs_to_fields"
41841
+ Fixture Insert (0.2ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (1, 1, 1)
41842
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (2, 2, 1)
41843
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (3, 3, 1)
41844
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (4, 4, 2)
41845
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (5, 5, 2)
41846
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (6, 6, 2)
41847
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (7, 7, 3)
41848
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (8, 8, 3)
41849
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (9, 9, 3)
41850
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (10, 10, 4)
41851
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (11, 11, 4)
41852
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (12, 12, 4)
41853
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (13, 13, 5)
41854
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (14, 14, 5)
41855
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (15, 15, 5)
41856
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (16, 16, 6)
41857
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (17, 17, 6)
41858
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (18, 18, 6)
41859
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (19, 19, 7)
41860
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (20, 20, 7)
41861
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (21, 21, 7)
41862
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (22, 22, 7)
41863
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (23, 23, 8)
41864
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (24, 24, 8)
41865
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (25, 25, 9)
41866
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (26, 26, 9)
41867
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (27, 27, 9)
41868
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (28, 28, 10)
41869
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (29, 29, 10)
41870
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (30, 30, 10)
41871
+ Fixture Delete (0.2ms) DELETE FROM "has_many_fields"
41872
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (1)
41873
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (2)
41874
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (3)
41875
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (4)
41876
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (5, 3)
41877
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (6, 2)
41878
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (7)
41879
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (8, 2)
41880
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (9)
41881
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (10)
41882
+ Fixture Delete (0.1ms) DELETE FROM "has_many_through_fields"
41883
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (1)
41884
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (2)
41885
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (3)
41886
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (4)
41887
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (5)
41888
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (6)
41889
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (7)
41890
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (8)
41891
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (9)
41892
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (10)
41893
+ Fixture Delete (0.1ms) DELETE FROM "has_one_fields"
41894
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (1)
41895
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (2)
41896
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (3)
41897
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (4)
41898
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (5)
41899
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (6)
41900
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (7)
41901
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (8)
41902
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (9)
41903
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (10)
41904
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (11)
41905
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (12)
41906
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (13)
41907
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (14)
41908
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (15)
41909
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (16)
41910
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (17)
41911
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (18)
41912
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (19)
41913
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (20)
41914
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (21)
41915
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (22)
41916
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (23)
41917
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (24)
41918
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (25)
41919
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (26)
41920
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (27)
41921
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (28)
41922
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (29)
41923
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (30)
41924
+ Fixture Delete (0.1ms) DELETE FROM "string_fields"
41925
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (1, 'Test 1')
41926
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (2, 'Test 2')
41927
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (3, 'Test 3')
41928
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (4, 'Test 4')
41929
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (5, 'Test 5')
41930
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (6, 'Test 6')
41931
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (7, 'Test 7')
41932
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (8, 'Test 8')
41933
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (9, 'Test 9')
41934
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (10, 'Test 10')
41935
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (11, 'Test 11')
41936
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (12, 'Test 12')
41937
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (13, 'Test 13')
41938
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (14, 'Test 14')
41939
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (15, 'Test 15')
41940
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (16, 'Test 16')
41941
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (17, 'Test 17')
41942
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (18, 'Test 18')
41943
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (19, 'Test 19')
41944
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (20, 'Test 20')
41945
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (21, 'Test 21')
41946
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (22, 'Test 22')
41947
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (23, 'Test 23')
41948
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (24, 'Test 24')
41949
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (25, 'Test 25')
41950
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (26, 'Test 26')
41951
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (27, 'Test 27')
41952
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (28, 'Test 28')
41953
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (29, 'Test 29')
41954
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (30, 'Test 30')
41955
+  (1.7ms) commit transaction
41956
+  (0.1ms) begin transaction
41957
+ ---------------------------
41958
+ ForestLianaTest: test_truth
41959
+ ---------------------------
41960
+  (0.1ms) rollback transaction
41961
+  (0.1ms) begin transaction
41962
+ -----------------------------------------------------------------
41963
+ ForestLiana::ResourcesGetterTest: test_StringField_page_1_size_15
41964
+ -----------------------------------------------------------------
41965
+ StringField Load (0.3ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC LIMIT 15 OFFSET 0
41966
+  (0.2ms) SELECT COUNT(*) FROM "string_fields"
41967
+  (0.0ms) rollback transaction
41968
+  (0.1ms) begin transaction
41969
+ -----------------------------------------------------------------------
41970
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_belongs_to_association
41971
+ -----------------------------------------------------------------------
41972
+ SQL (0.3ms) SELECT "belongs_to_fields"."id" AS t0_r0, "belongs_to_fields"."has_one_field_id" AS t0_r1, "belongs_to_fields"."has_many_class_name_field_id" AS t0_r2, "belongs_to_fields"."has_many_field_id" AS t0_r3, "has_one_fields"."id" AS t1_r0 FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" ORDER BY has_one_fields.id ASC LIMIT 10 OFFSET 0
41973
+  (0.1ms) SELECT COUNT(*) FROM "belongs_to_fields"
41974
+  (0.0ms) rollback transaction
41975
+  (0.1ms) begin transaction
41976
+ ---------------------------------------------------------------------
41977
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_many_association
41978
+ ---------------------------------------------------------------------
41979
+ HasManyField Load (0.3ms) SELECT has_many_fields.*,
41980
+ COUNT(belongs_to_fields.id)
41981
+ belongs_to_fields_has_many_count FROM "has_many_fields" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_many_field_id" = "has_many_fields"."id" GROUP BY has_many_fields.id ORDER BY belongs_to_fields_has_many_count DESC LIMIT 10 OFFSET 0
41982
+ BelongsToField Load (0.2ms) SELECT "belongs_to_fields".* FROM "belongs_to_fields" WHERE "belongs_to_fields"."has_many_field_id" IN (7, 1, 2, 3, 4, 5, 6, 9, 10, 8)
41983
+  (0.1ms) SELECT COUNT(*) FROM "has_many_fields"
41984
+  (0.1ms) rollback transaction
41985
+  (0.1ms) begin transaction
41986
+ --------------------------------------------------------------------
41987
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_one_association
41988
+ --------------------------------------------------------------------
41989
+ SQL (0.2ms) SELECT "has_one_fields"."id" AS t0_r0, "belongs_to_fields"."id" AS t1_r0, "belongs_to_fields"."has_one_field_id" AS t1_r1, "belongs_to_fields"."has_many_class_name_field_id" AS t1_r2, "belongs_to_fields"."has_many_field_id" AS t1_r3 FROM "has_one_fields" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_one_field_id" = "has_one_fields"."id" ORDER BY belongs_to_fields.id DESC LIMIT 10 OFFSET 0
41990
+  (0.1ms) SELECT COUNT(*) FROM "has_one_fields"
41991
+  (0.0ms) rollback transaction
41992
+  (0.0ms) begin transaction
41993
+ -----------------------------------------------------------------------------
41994
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_many_through_association
41995
+ -----------------------------------------------------------------------------
41996
+ HasManyThroughField Load (0.2ms) SELECT has_many_through_fields.*,
41997
+ COUNT(belongs_to_fields.id)
41998
+ belongs_to_fields_has_many_count FROM "has_many_through_fields" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."has_many_through_field_id" = "has_many_through_fields"."id" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_many_field_id" = "has_many_fields"."id" GROUP BY has_many_through_fields.id ORDER BY belongs_to_fields_has_many_count DESC LIMIT 10 OFFSET 0
41999
+ HasManyField Load (0.2ms) SELECT "has_many_fields".* FROM "has_many_fields" WHERE "has_many_fields"."has_many_through_field_id" IN (2, 3, 1, 4, 5, 6, 7, 8, 9, 10)
42000
+ BelongsToField Load (0.2ms) SELECT "belongs_to_fields".* FROM "belongs_to_fields" WHERE "belongs_to_fields"."has_many_field_id" IN (6, 8, 5)
42001
+  (0.0ms) SELECT COUNT(*) FROM "has_many_through_fields"
42002
+  (0.0ms) rollback transaction
42003
+  (0.0ms) begin transaction
42004
+ -----------------------------------------------------------------
42005
+ ForestLiana::ResourcesGetterTest: test_StringField_page_2_size_10
42006
+ -----------------------------------------------------------------
42007
+ StringField Load (0.1ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC LIMIT 10 OFFSET 10
42008
+  (0.0ms) SELECT COUNT(*) FROM "string_fields"
42009
+  (0.0ms) rollback transaction
42010
+  (0.0ms) begin transaction
42011
+ ----------------------------------------------------------------
42012
+ ForestLiana::ResourcesGetterTest: test_StringField_sort_by_field
42013
+ ----------------------------------------------------------------
42014
+ StringField Load (0.2ms) SELECT "string_fields".* FROM "string_fields" ORDER BY field DESC LIMIT 10 OFFSET 0
42015
+  (0.1ms) SELECT COUNT(*) FROM "string_fields"
42016
+  (0.0ms) rollback transaction
42017
+  (0.0ms) begin transaction
42018
+ ------------------------------------------------------------------------------------
42019
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
42020
+ ------------------------------------------------------------------------------------
42021
+  (0.1ms) rollback transaction
42022
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
42023
+  (0.1ms) begin transaction
42024
+ Fixture Delete (0.4ms) DELETE FROM "belongs_to_fields"
42025
+ Fixture Insert (0.2ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (1, 1, 1)
42026
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (2, 2, 1)
42027
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (3, 3, 1)
42028
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (4, 4, 2)
42029
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (5, 5, 2)
42030
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (6, 6, 2)
42031
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (7, 7, 3)
42032
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (8, 8, 3)
42033
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (9, 9, 3)
42034
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (10, 10, 4)
42035
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (11, 11, 4)
42036
+ Fixture Insert (0.3ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (12, 12, 4)
42037
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (13, 13, 5)
42038
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (14, 14, 5)
42039
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (15, 15, 5)
42040
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (16, 16, 6)
42041
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (17, 17, 6)
42042
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (18, 18, 6)
42043
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (19, 19, 7)
42044
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (20, 20, 7)
42045
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (21, 21, 7)
42046
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (22, 22, 7)
42047
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (23, 23, 8)
42048
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (24, 24, 8)
42049
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (25, 25, 9)
42050
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (26, 26, 9)
42051
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (27, 27, 9)
42052
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (28, 28, 10)
42053
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (29, 29, 10)
42054
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (30, 30, 10)
42055
+ Fixture Delete (0.1ms) DELETE FROM "has_many_fields"
42056
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (1)
42057
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (2)
42058
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (3)
42059
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (4)
42060
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (5, 3)
42061
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (6, 2)
42062
+ Fixture Insert (0.4ms) INSERT INTO "has_many_fields" ("id") VALUES (7)
42063
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (8, 2)
42064
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (9)
42065
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (10)
42066
+ Fixture Delete (0.1ms) DELETE FROM "has_many_through_fields"
42067
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (1)
42068
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (2)
42069
+ Fixture Insert (0.3ms) INSERT INTO "has_many_through_fields" ("id") VALUES (3)
42070
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (4)
42071
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (5)
42072
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (6)
42073
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (7)
42074
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (8)
42075
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (9)
42076
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (10)
42077
+ Fixture Delete (0.1ms) DELETE FROM "has_one_fields"
42078
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (1)
42079
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (2)
42080
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (3)
42081
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (4)
42082
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (5)
42083
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (6)
42084
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (7)
42085
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (8)
42086
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (9)
42087
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (10)
42088
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (11)
42089
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (12)
42090
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (13)
42091
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (14)
42092
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (15)
42093
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (16)
42094
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (17)
42095
+ Fixture Insert (0.2ms) INSERT INTO "has_one_fields" ("id") VALUES (18)
42096
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (19)
42097
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (20)
42098
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (21)
42099
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (22)
42100
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (23)
42101
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (24)
42102
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (25)
42103
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (26)
42104
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (27)
42105
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (28)
42106
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (29)
42107
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (30)
42108
+ Fixture Delete (0.1ms) DELETE FROM "string_fields"
42109
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (1, 'Test 1')
42110
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (2, 'Test 2')
42111
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (3, 'Test 3')
42112
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (4, 'Test 4')
42113
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (5, 'Test 5')
42114
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (6, 'Test 6')
42115
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (7, 'Test 7')
42116
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (8, 'Test 8')
42117
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (9, 'Test 9')
42118
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (10, 'Test 10')
42119
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (11, 'Test 11')
42120
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (12, 'Test 12')
42121
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (13, 'Test 13')
42122
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (14, 'Test 14')
42123
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (15, 'Test 15')
42124
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (16, 'Test 16')
42125
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (17, 'Test 17')
42126
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (18, 'Test 18')
42127
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (19, 'Test 19')
42128
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (20, 'Test 20')
42129
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (21, 'Test 21')
42130
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (22, 'Test 22')
42131
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (23, 'Test 23')
42132
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (24, 'Test 24')
42133
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (25, 'Test 25')
42134
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (26, 'Test 26')
42135
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (27, 'Test 27')
42136
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (28, 'Test 28')
42137
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (29, 'Test 29')
42138
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (30, 'Test 30')
42139
+  (1.7ms) commit transaction
42140
+  (0.1ms) begin transaction
42141
+ ---------------------------
42142
+ ForestLianaTest: test_truth
42143
+ ---------------------------
42144
+  (0.1ms) rollback transaction
42145
+  (0.0ms) begin transaction
42146
+ ------------------------------------------------------------------------------------
42147
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
42148
+ ------------------------------------------------------------------------------------
42149
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
42150
+  (0.1ms) begin transaction
42151
+ Fixture Delete (0.2ms) DELETE FROM "belongs_to_fields"
42152
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (1, 1, 1)
42153
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (2, 2, 1)
42154
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (3, 3, 1)
42155
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (4, 4, 2)
42156
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (5, 5, 2)
42157
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (6, 6, 2)
42158
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (7, 7, 3)
42159
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (8, 8, 3)
42160
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (9, 9, 3)
42161
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (10, 10, 4)
42162
+ Fixture Insert (0.2ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (11, 11, 4)
42163
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (12, 12, 4)
42164
+ Fixture Insert (0.2ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (13, 13, 5)
42165
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (14, 14, 5)
42166
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (15, 15, 5)
42167
+ Fixture Insert (0.3ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (16, 16, 6)
42168
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (17, 17, 6)
42169
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (18, 18, 6)
42170
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (19, 19, 7)
42171
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (20, 20, 7)
42172
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (21, 21, 7)
42173
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (22, 22, 7)
42174
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (23, 23, 8)
42175
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (24, 24, 8)
42176
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (25, 25, 9)
42177
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (26, 26, 9)
42178
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (27, 27, 9)
42179
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (28, 28, 10)
42180
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (29, 29, 10)
42181
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (30, 30, 10)
42182
+ Fixture Delete (0.2ms) DELETE FROM "has_many_fields"
42183
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (1)
42184
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (2)
42185
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (3)
42186
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (4)
42187
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (5, 3)
42188
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (6, 2)
42189
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (7)
42190
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (8, 2)
42191
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (9)
42192
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (10)
42193
+ Fixture Delete (0.1ms) DELETE FROM "has_many_through_fields"
42194
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (1)
42195
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (2)
42196
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (3)
42197
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (4)
42198
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (5)
42199
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (6)
42200
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (7)
42201
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (8)
42202
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (9)
42203
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (10)
42204
+ Fixture Delete (0.2ms) DELETE FROM "has_one_fields"
42205
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (1)
42206
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (2)
42207
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (3)
42208
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (4)
42209
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (5)
42210
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (6)
42211
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (7)
42212
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (8)
42213
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (9)
42214
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (10)
42215
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (11)
42216
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (12)
42217
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (13)
42218
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (14)
42219
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (15)
42220
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (16)
42221
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (17)
42222
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (18)
42223
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (19)
42224
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (20)
42225
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (21)
42226
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (22)
42227
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (23)
42228
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (24)
42229
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (25)
42230
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (26)
42231
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (27)
42232
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (28)
42233
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (29)
42234
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (30)
42235
+ Fixture Delete (0.1ms) DELETE FROM "string_fields"
42236
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (1, 'Test 1')
42237
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (2, 'Test 2')
42238
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (3, 'Test 3')
42239
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (4, 'Test 4')
42240
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (5, 'Test 5')
42241
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (6, 'Test 6')
42242
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (7, 'Test 7')
42243
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (8, 'Test 8')
42244
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (9, 'Test 9')
42245
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (10, 'Test 10')
42246
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (11, 'Test 11')
42247
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (12, 'Test 12')
42248
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (13, 'Test 13')
42249
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (14, 'Test 14')
42250
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (15, 'Test 15')
42251
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (16, 'Test 16')
42252
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (17, 'Test 17')
42253
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (18, 'Test 18')
42254
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (19, 'Test 19')
42255
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (20, 'Test 20')
42256
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (21, 'Test 21')
42257
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (22, 'Test 22')
42258
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (23, 'Test 23')
42259
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (24, 'Test 24')
42260
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (25, 'Test 25')
42261
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (26, 'Test 26')
42262
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (27, 'Test 27')
42263
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (28, 'Test 28')
42264
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (29, 'Test 29')
42265
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (30, 'Test 30')
42266
+  (1.6ms) commit transaction
42267
+  (0.1ms) begin transaction
42268
+ -----------------------------------------------------------------
42269
+ ForestLiana::ResourcesGetterTest: test_StringField_page_2_size_10
42270
+ -----------------------------------------------------------------
42271
+ StringField Load (0.2ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC LIMIT 10 OFFSET 10
42272
+  (0.1ms) SELECT COUNT(*) FROM "string_fields"
42273
+  (0.1ms) rollback transaction
42274
+  (0.0ms) begin transaction
42275
+ ---------------------------------------------------------------------
42276
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_many_association
42277
+ ---------------------------------------------------------------------
42278
+ HasManyField Load (0.3ms) SELECT has_many_fields.*,
42279
+ COUNT(belongs_to_fields.id)
42280
+ belongs_to_fields_has_many_count FROM "has_many_fields" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_many_field_id" = "has_many_fields"."id" GROUP BY has_many_fields.id ORDER BY belongs_to_fields_has_many_count DESC LIMIT 10 OFFSET 0
42281
+ BelongsToField Load (0.2ms) SELECT "belongs_to_fields".* FROM "belongs_to_fields" WHERE "belongs_to_fields"."has_many_field_id" IN (7, 1, 2, 3, 4, 5, 6, 9, 10, 8)
42282
+  (0.1ms) SELECT COUNT(*) FROM "has_many_fields"
42283
+  (0.0ms) rollback transaction
42284
+  (0.1ms) begin transaction
42285
+ -----------------------------------------------------------------------
42286
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_belongs_to_association
42287
+ -----------------------------------------------------------------------
42288
+ SQL (0.4ms) SELECT "belongs_to_fields"."id" AS t0_r0, "belongs_to_fields"."has_one_field_id" AS t0_r1, "belongs_to_fields"."has_many_class_name_field_id" AS t0_r2, "belongs_to_fields"."has_many_field_id" AS t0_r3, "has_one_fields"."id" AS t1_r0 FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" ORDER BY has_one_fields.id ASC LIMIT 10 OFFSET 0
42289
+  (0.1ms) SELECT COUNT(*) FROM "belongs_to_fields"
42290
+  (0.0ms) rollback transaction
42291
+  (0.0ms) begin transaction
42292
+ --------------------------------------------------------------------
42293
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_one_association
42294
+ --------------------------------------------------------------------
42295
+ SQL (0.2ms) SELECT "has_one_fields"."id" AS t0_r0, "belongs_to_fields"."id" AS t1_r0, "belongs_to_fields"."has_one_field_id" AS t1_r1, "belongs_to_fields"."has_many_class_name_field_id" AS t1_r2, "belongs_to_fields"."has_many_field_id" AS t1_r3 FROM "has_one_fields" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_one_field_id" = "has_one_fields"."id" ORDER BY belongs_to_fields.id DESC LIMIT 10 OFFSET 0
42296
+  (0.0ms) SELECT COUNT(*) FROM "has_one_fields"
42297
+  (0.0ms) rollback transaction
42298
+  (0.0ms) begin transaction
42299
+ -----------------------------------------------------------------------------
42300
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_many_through_association
42301
+ -----------------------------------------------------------------------------
42302
+ HasManyThroughField Load (0.2ms) SELECT has_many_through_fields.*,
42303
+ COUNT(belongs_to_fields.id)
42304
+ belongs_to_fields_has_many_count FROM "has_many_through_fields" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."has_many_through_field_id" = "has_many_through_fields"."id" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_many_field_id" = "has_many_fields"."id" GROUP BY has_many_through_fields.id ORDER BY belongs_to_fields_has_many_count DESC LIMIT 10 OFFSET 0
42305
+ HasManyField Load (0.5ms) SELECT "has_many_fields".* FROM "has_many_fields" WHERE "has_many_fields"."has_many_through_field_id" IN (2, 3, 1, 4, 5, 6, 7, 8, 9, 10)
42306
+ BelongsToField Load (0.2ms) SELECT "belongs_to_fields".* FROM "belongs_to_fields" WHERE "belongs_to_fields"."has_many_field_id" IN (6, 8, 5)
42307
+  (0.0ms) SELECT COUNT(*) FROM "has_many_through_fields"
42308
+  (0.0ms) rollback transaction
42309
+  (0.0ms) begin transaction
42310
+ ----------------------------------------------------------------
42311
+ ForestLiana::ResourcesGetterTest: test_StringField_sort_by_field
42312
+ ----------------------------------------------------------------
42313
+ StringField Load (0.2ms) SELECT "string_fields".* FROM "string_fields" ORDER BY field DESC LIMIT 10 OFFSET 0
42314
+  (0.1ms) SELECT COUNT(*) FROM "string_fields"
42315
+  (0.0ms) rollback transaction
42316
+  (0.1ms) begin transaction
42317
+ -----------------------------------------------------------------
42318
+ ForestLiana::ResourcesGetterTest: test_StringField_page_1_size_15
42319
+ -----------------------------------------------------------------
42320
+ StringField Load (0.1ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC LIMIT 15 OFFSET 0
42321
+  (0.1ms) SELECT COUNT(*) FROM "string_fields"
42322
+  (0.0ms) rollback transaction
42323
+  (0.1ms) begin transaction
42324
+ ------------------------------------------------------------------------------------
42325
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
42326
+ ------------------------------------------------------------------------------------
42327
+  (0.1ms) rollback transaction
42328
+  (0.3ms) begin transaction
42329
+ ---------------------------
42330
+ ForestLianaTest: test_truth
42331
+ ---------------------------
42332
+  (0.1ms) rollback transaction
42333
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
42334
+  (0.1ms) begin transaction
42335
+ Fixture Delete (0.3ms) DELETE FROM "belongs_to_fields"
42336
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (1, 1, 1)
42337
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (2, 2, 1)
42338
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (3, 3, 1)
42339
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (4, 4, 2)
42340
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (5, 5, 2)
42341
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (6, 6, 2)
42342
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (7, 7, 3)
42343
+ Fixture Insert (0.3ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (8, 8, 3)
42344
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (9, 9, 3)
42345
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (10, 10, 4)
42346
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (11, 11, 4)
42347
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (12, 12, 4)
42348
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (13, 13, 5)
42349
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (14, 14, 5)
42350
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (15, 15, 5)
42351
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (16, 16, 6)
42352
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (17, 17, 6)
42353
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (18, 18, 6)
42354
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (19, 19, 7)
42355
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (20, 20, 7)
42356
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (21, 21, 7)
42357
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (22, 22, 7)
42358
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (23, 23, 8)
42359
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (24, 24, 8)
42360
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (25, 25, 9)
42361
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (26, 26, 9)
42362
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (27, 27, 9)
42363
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (28, 28, 10)
42364
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (29, 29, 10)
42365
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (30, 30, 10)
42366
+ Fixture Delete (0.1ms) DELETE FROM "has_many_fields"
42367
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (1)
42368
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (2)
42369
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (3)
42370
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (4)
42371
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (5, 3)
42372
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (6, 2)
42373
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (7)
42374
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (8, 2)
42375
+ Fixture Insert (0.3ms) INSERT INTO "has_many_fields" ("id") VALUES (9)
42376
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (10)
42377
+ Fixture Delete (0.0ms) DELETE FROM "has_many_through_fields"
42378
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (1)
42379
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (2)
42380
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (3)
42381
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (4)
42382
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (5)
42383
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (6)
42384
+ Fixture Insert (0.3ms) INSERT INTO "has_many_through_fields" ("id") VALUES (7)
42385
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (8)
42386
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (9)
42387
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (10)
42388
+ Fixture Delete (0.1ms) DELETE FROM "has_one_fields"
42389
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (1)
42390
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (2)
42391
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (3)
42392
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (4)
42393
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (5)
42394
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (6)
42395
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (7)
42396
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (8)
42397
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (9)
42398
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (10)
42399
+ Fixture Insert (0.2ms) INSERT INTO "has_one_fields" ("id") VALUES (11)
42400
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (12)
42401
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (13)
42402
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (14)
42403
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (15)
42404
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (16)
42405
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (17)
42406
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (18)
42407
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (19)
42408
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (20)
42409
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (21)
42410
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (22)
42411
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (23)
42412
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (24)
42413
+ Fixture Insert (0.5ms) INSERT INTO "has_one_fields" ("id") VALUES (25)
42414
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (26)
42415
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (27)
42416
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (28)
42417
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (29)
42418
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (30)
42419
+ Fixture Delete (0.1ms) DELETE FROM "string_fields"
42420
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (1, 'Test 1')
42421
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (2, 'Test 2')
42422
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (3, 'Test 3')
42423
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (4, 'Test 4')
42424
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (5, 'Test 5')
42425
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (6, 'Test 6')
42426
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (7, 'Test 7')
42427
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (8, 'Test 8')
42428
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (9, 'Test 9')
42429
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (10, 'Test 10')
42430
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (11, 'Test 11')
42431
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (12, 'Test 12')
42432
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (13, 'Test 13')
42433
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (14, 'Test 14')
42434
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (15, 'Test 15')
42435
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (16, 'Test 16')
42436
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (17, 'Test 17')
42437
+ Fixture Insert (0.2ms) INSERT INTO "string_fields" ("id", "field") VALUES (18, 'Test 18')
42438
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (19, 'Test 19')
42439
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (20, 'Test 20')
42440
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (21, 'Test 21')
42441
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (22, 'Test 22')
42442
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (23, 'Test 23')
42443
+ Fixture Insert (0.3ms) INSERT INTO "string_fields" ("id", "field") VALUES (24, 'Test 24')
42444
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (25, 'Test 25')
42445
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (26, 'Test 26')
42446
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (27, 'Test 27')
42447
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (28, 'Test 28')
42448
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (29, 'Test 29')
42449
+ Fixture Insert (0.3ms) INSERT INTO "string_fields" ("id", "field") VALUES (30, 'Test 30')
42450
+  (1.7ms) commit transaction
42451
+  (0.1ms) begin transaction
42452
+ ----------------------------------------------------------------------------------
42453
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
42454
+ ----------------------------------------------------------------------------------
42455
+  (0.1ms) rollback transaction
42456
+  (0.0ms) begin transaction
42457
+ ---------------------------------------------------------
42458
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationship
42459
+ ---------------------------------------------------------
42460
+  (0.1ms) rollback transaction
42461
+  (0.2ms) begin transaction
42462
+ -----------------------------------------------------------
42463
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
42464
+ -----------------------------------------------------------
42465
+  (0.0ms) rollback transaction
42466
+  (0.1ms) begin transaction
42467
+ ------------------------------------------------------------------------
42468
+ ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
42469
+ ------------------------------------------------------------------------
42470
+  (0.1ms) rollback transaction
42471
+  (0.1ms) begin transaction
42472
+ -------------------------------------------------------------------------
42473
+ ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
42474
+ -------------------------------------------------------------------------
42475
+  (0.1ms) rollback transaction
42476
+  (0.1ms) begin transaction
42477
+ -------------------------------------------------------------------------
42478
+ ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
42479
+ -------------------------------------------------------------------------
42480
+  (0.0ms) rollback transaction
42481
+  (0.1ms) begin transaction
42482
+ --------------------------------------------------------------------------
42483
+ ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
42484
+ --------------------------------------------------------------------------
42485
+  (0.0ms) rollback transaction
42486
+  (0.0ms) begin transaction
42487
+ ---------------------------------------------------------------------------
42488
+ ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
42489
+ ---------------------------------------------------------------------------
42490
+  (0.0ms) rollback transaction
42491
+  (0.2ms) begin transaction
42492
+ --------------------------------------------------------------------------
42493
+ ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
42494
+ --------------------------------------------------------------------------
42495
+  (0.0ms) rollback transaction
42496
+  (0.0ms) begin transaction
42497
+ ---------------------------------------------------------------------
42498
+ ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
42499
+ ---------------------------------------------------------------------
42500
+  (0.0ms) rollback transaction
42501
+  (0.0ms) begin transaction
42502
+ ------------------------------------------------------------------------------------
42503
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
42504
+ ------------------------------------------------------------------------------------
42505
+  (0.0ms) rollback transaction
42506
+  (0.1ms) begin transaction
42507
+ --------------------------------------------------------
42508
+ ForestLiana::SchemaAdapterTest: test_hasOne_relationship
42509
+ --------------------------------------------------------
42510
+  (0.0ms) rollback transaction
42511
+  (0.0ms) begin transaction
42512
+ ---------------------------------------------------------------------
42513
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_many_association
42514
+ ---------------------------------------------------------------------
42515
+ HasManyField Load (0.3ms) SELECT has_many_fields.*,
42516
+ COUNT(belongs_to_fields.id)
42517
+ belongs_to_fields_has_many_count FROM "has_many_fields" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_many_field_id" = "has_many_fields"."id" GROUP BY has_many_fields.id ORDER BY belongs_to_fields_has_many_count DESC LIMIT 10 OFFSET 0
42518
+ BelongsToField Load (0.2ms) SELECT "belongs_to_fields".* FROM "belongs_to_fields" WHERE "belongs_to_fields"."has_many_field_id" IN (7, 1, 2, 3, 4, 5, 6, 9, 10, 8)
42519
+  (0.1ms) SELECT COUNT(*) FROM "has_many_fields"
42520
+  (0.0ms) rollback transaction
42521
+  (0.1ms) begin transaction
42522
+ -----------------------------------------------------------------------
42523
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_belongs_to_association
42524
+ -----------------------------------------------------------------------
42525
+ SQL (0.3ms) SELECT "belongs_to_fields"."id" AS t0_r0, "belongs_to_fields"."has_one_field_id" AS t0_r1, "belongs_to_fields"."has_many_class_name_field_id" AS t0_r2, "belongs_to_fields"."has_many_field_id" AS t0_r3, "has_one_fields"."id" AS t1_r0 FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" ORDER BY has_one_fields.id ASC LIMIT 10 OFFSET 0
42526
+  (0.1ms) SELECT COUNT(*) FROM "belongs_to_fields"
42527
+  (0.0ms) rollback transaction
42528
+  (0.1ms) begin transaction
42529
+ -----------------------------------------------------------------
42530
+ ForestLiana::ResourcesGetterTest: test_StringField_page_2_size_10
42531
+ -----------------------------------------------------------------
42532
+ StringField Load (0.1ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC LIMIT 10 OFFSET 10
42533
+  (0.0ms) SELECT COUNT(*) FROM "string_fields"
42534
+  (0.0ms) rollback transaction
42535
+  (0.0ms) begin transaction
42536
+ -----------------------------------------------------------------------------
42537
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_many_through_association
42538
+ -----------------------------------------------------------------------------
42539
+ HasManyThroughField Load (0.3ms) SELECT has_many_through_fields.*,
42540
+ COUNT(belongs_to_fields.id)
42541
+ belongs_to_fields_has_many_count FROM "has_many_through_fields" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."has_many_through_field_id" = "has_many_through_fields"."id" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_many_field_id" = "has_many_fields"."id" GROUP BY has_many_through_fields.id ORDER BY belongs_to_fields_has_many_count DESC LIMIT 10 OFFSET 0
42542
+ HasManyField Load (0.2ms) SELECT "has_many_fields".* FROM "has_many_fields" WHERE "has_many_fields"."has_many_through_field_id" IN (2, 3, 1, 4, 5, 6, 7, 8, 9, 10)
42543
+ BelongsToField Load (0.1ms) SELECT "belongs_to_fields".* FROM "belongs_to_fields" WHERE "belongs_to_fields"."has_many_field_id" IN (6, 8, 5)
42544
+  (0.0ms) SELECT COUNT(*) FROM "has_many_through_fields"
42545
+  (0.0ms) rollback transaction
42546
+  (0.1ms) begin transaction
42547
+ ----------------------------------------------------------------
42548
+ ForestLiana::ResourcesGetterTest: test_StringField_sort_by_field
42549
+ ----------------------------------------------------------------
42550
+ StringField Load (0.1ms) SELECT "string_fields".* FROM "string_fields" ORDER BY field DESC LIMIT 10 OFFSET 0
42551
+  (0.0ms) SELECT COUNT(*) FROM "string_fields"
42552
+  (0.0ms) rollback transaction
42553
+  (0.1ms) begin transaction
42554
+ --------------------------------------------------------------------
42555
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_one_association
42556
+ --------------------------------------------------------------------
42557
+ SQL (0.2ms) SELECT "has_one_fields"."id" AS t0_r0, "belongs_to_fields"."id" AS t1_r0, "belongs_to_fields"."has_one_field_id" AS t1_r1, "belongs_to_fields"."has_many_class_name_field_id" AS t1_r2, "belongs_to_fields"."has_many_field_id" AS t1_r3 FROM "has_one_fields" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_one_field_id" = "has_one_fields"."id" ORDER BY belongs_to_fields.id DESC LIMIT 10 OFFSET 0
42558
+  (0.0ms) SELECT COUNT(*) FROM "has_one_fields"
42559
+  (0.0ms) rollback transaction
42560
+  (0.0ms) begin transaction
42561
+ -----------------------------------------------------------------
42562
+ ForestLiana::ResourcesGetterTest: test_StringField_page_1_size_15
42563
+ -----------------------------------------------------------------
42564
+ StringField Load (0.2ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC LIMIT 15 OFFSET 0
42565
+  (0.0ms) SELECT COUNT(*) FROM "string_fields"
42566
+  (0.0ms) rollback transaction
42567
+  (0.0ms) begin transaction
42568
+ ---------------------------
42569
+ ForestLianaTest: test_truth
42570
+ ---------------------------
42571
+  (0.0ms) rollback transaction
42572
+ ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
42573
+  (0.1ms) begin transaction
42574
+ Fixture Delete (2.0ms) DELETE FROM "belongs_to_fields"
42575
+ Fixture Insert (0.5ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (1, 1, 1)
42576
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (2, 2, 1)
42577
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (3, 3, 1)
42578
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (4, 4, 2)
42579
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (5, 5, 2)
42580
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (6, 6, 2)
42581
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (7, 7, 3)
42582
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (8, 8, 3)
42583
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (9, 9, 3)
42584
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (10, 10, 4)
42585
+ Fixture Insert (0.2ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (11, 11, 4)
42586
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (12, 12, 4)
42587
+ Fixture Insert (0.4ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (13, 13, 5)
42588
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (14, 14, 5)
42589
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (15, 15, 5)
42590
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (16, 16, 6)
42591
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (17, 17, 6)
42592
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (18, 18, 6)
42593
+ Fixture Insert (0.5ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (19, 19, 7)
42594
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (20, 20, 7)
42595
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (21, 21, 7)
42596
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (22, 22, 7)
42597
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (23, 23, 8)
42598
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (24, 24, 8)
42599
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (25, 25, 9)
42600
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (26, 26, 9)
42601
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (27, 27, 9)
42602
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (28, 28, 10)
42603
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (29, 29, 10)
42604
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (30, 30, 10)
42605
+ Fixture Delete (0.9ms) DELETE FROM "has_many_fields"
42606
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (1)
42607
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (2)
42608
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (3)
42609
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (4)
42610
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (5, 3)
42611
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (6, 2)
42612
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (7)
42613
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (8, 2)
42614
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (9)
42615
+ Fixture Insert (0.3ms) INSERT INTO "has_many_fields" ("id") VALUES (10)
42616
+ Fixture Delete (0.4ms) DELETE FROM "has_many_through_fields"
42617
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (1)
42618
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (2)
42619
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (3)
42620
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (4)
42621
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (5)
42622
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (6)
42623
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (7)
42624
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (8)
42625
+ Fixture Insert (0.4ms) INSERT INTO "has_many_through_fields" ("id") VALUES (9)
42626
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (10)
42627
+ Fixture Delete (0.3ms) DELETE FROM "has_one_fields"
42628
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (1)
42629
+ Fixture Insert (0.4ms) INSERT INTO "has_one_fields" ("id") VALUES (2)
42630
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (3)
42631
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (4)
42632
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (5)
42633
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (6)
42634
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (7)
42635
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (8)
42636
+ Fixture Insert (0.2ms) INSERT INTO "has_one_fields" ("id") VALUES (9)
42637
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (10)
42638
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (11)
42639
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (12)
42640
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (13)
42641
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (14)
42642
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (15)
42643
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (16)
42644
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (17)
42645
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (18)
42646
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (19)
42647
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (20)
42648
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (21)
42649
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (22)
42650
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (23)
42651
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (24)
42652
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (25)
42653
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (26)
42654
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (27)
42655
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (28)
42656
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (29)
42657
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (30)
42658
+ Fixture Delete (0.3ms) DELETE FROM "string_fields"
42659
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (1, 'Test 1')
42660
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (2, 'Test 2')
42661
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (3, 'Test 3')
42662
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (4, 'Test 4')
42663
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (5, 'Test 5')
42664
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (6, 'Test 6')
42665
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (7, 'Test 7')
42666
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (8, 'Test 8')
42667
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (9, 'Test 9')
42668
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (10, 'Test 10')
42669
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (11, 'Test 11')
42670
+ Fixture Insert (0.2ms) INSERT INTO "string_fields" ("id", "field") VALUES (12, 'Test 12')
42671
+ Fixture Insert (0.2ms) INSERT INTO "string_fields" ("id", "field") VALUES (13, 'Test 13')
42672
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (14, 'Test 14')
42673
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (15, 'Test 15')
42674
+ Fixture Insert (0.2ms) INSERT INTO "string_fields" ("id", "field") VALUES (16, 'Test 16')
42675
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (17, 'Test 17')
42676
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (18, 'Test 18')
42677
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (19, 'Test 19')
42678
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (20, 'Test 20')
42679
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (21, 'Test 21')
42680
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (22, 'Test 22')
42681
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (23, 'Test 23')
42682
+ Fixture Insert (0.3ms) INSERT INTO "string_fields" ("id", "field") VALUES (24, 'Test 24')
42683
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (25, 'Test 25')
42684
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (26, 'Test 26')
42685
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (27, 'Test 27')
42686
+ Fixture Insert (0.2ms) INSERT INTO "string_fields" ("id", "field") VALUES (28, 'Test 28')
42687
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (29, 'Test 29')
42688
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (30, 'Test 30')
42689
+  (3.5ms) commit transaction
42690
+  (0.1ms) begin transaction
42691
+ ---------------------------------------------------------------------
42692
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_many_association
42693
+ ---------------------------------------------------------------------
42694
+ HasManyField Load (0.6ms) SELECT has_many_fields.*,
42695
+ COUNT(belongs_to_fields.id)
42696
+ belongs_to_fields_has_many_count FROM "has_many_fields" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_many_field_id" = "has_many_fields"."id" GROUP BY has_many_fields.id ORDER BY belongs_to_fields_has_many_count DESC LIMIT 10 OFFSET 0
42697
+ BelongsToField Load (0.4ms) SELECT "belongs_to_fields".* FROM "belongs_to_fields" WHERE "belongs_to_fields"."has_many_field_id" IN (7, 1, 2, 3, 4, 5, 6, 9, 10, 8)
42698
+ HasManyThroughField Load (0.2ms) SELECT "has_many_through_fields".* FROM "has_many_through_fields" WHERE "has_many_through_fields"."id" IN (3, 2)
42699
+  (0.3ms) SELECT COUNT(has_many_fields.*,
42700
+ COUNT(belongs_to_fields.id)
42701
+ belongs_to_fields_has_many_count) AS count_has_many_fields_all_count_belongs_to_fields_id_belongs_to_fields_has_many_count, has_many_fields.id AS has_many_fields_id FROM "has_many_fields" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_many_field_id" = "has_many_fields"."id" GROUP BY has_many_fields.id ORDER BY belongs_to_fields_has_many_count DESC
42702
+  (0.1ms) rollback transaction
42703
+  (0.1ms) begin transaction
42704
+ -----------------------------------------------------------------------
42705
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_belongs_to_association
42706
+ -----------------------------------------------------------------------
42707
+ SQL (0.2ms) SELECT "belongs_to_fields"."id" AS t0_r0, "belongs_to_fields"."has_one_field_id" AS t0_r1, "belongs_to_fields"."has_many_class_name_field_id" AS t0_r2, "belongs_to_fields"."has_many_field_id" AS t0_r3, "has_one_fields"."id" AS t1_r0, "has_many_fields"."id" AS t2_r0, "has_many_fields"."has_many_through_field_id" AS t2_r1, "has_many_class_name_fields"."id" AS t3_r0 FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id" ORDER BY has_one_fields.id ASC LIMIT 10 OFFSET 0
42708
+  (0.2ms) SELECT COUNT(DISTINCT "belongs_to_fields"."id") FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id"
42709
+  (0.1ms) rollback transaction
42710
+  (0.1ms) begin transaction
42711
+ -----------------------------------------------------------------
42712
+ ForestLiana::ResourcesGetterTest: test_StringField_page_2_size_10
42713
+ -----------------------------------------------------------------
42714
+ StringField Load (0.2ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC LIMIT 10 OFFSET 10
42715
+  (0.1ms) SELECT COUNT(*) FROM "string_fields"
42716
+  (0.1ms) rollback transaction
42717
+  (0.1ms) begin transaction
42718
+ -----------------------------------------------------------------------------
42719
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_many_through_association
42720
+ -----------------------------------------------------------------------------
42721
+ HasManyThroughField Load (0.7ms) SELECT has_many_through_fields.*,
42722
+ COUNT(belongs_to_fields.id)
42723
+ belongs_to_fields_has_many_count FROM "has_many_through_fields" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."has_many_through_field_id" = "has_many_through_fields"."id" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_many_field_id" = "has_many_fields"."id" GROUP BY has_many_through_fields.id ORDER BY belongs_to_fields_has_many_count DESC LIMIT 10 OFFSET 0
42724
+ HasManyField Load (0.2ms) SELECT "has_many_fields".* FROM "has_many_fields" WHERE "has_many_fields"."has_many_through_field_id" IN (2, 3, 1, 4, 5, 6, 7, 8, 9, 10)
42725
+ BelongsToField Load (0.2ms) SELECT "belongs_to_fields".* FROM "belongs_to_fields" WHERE "belongs_to_fields"."has_many_field_id" IN (6, 8, 5)
42726
+  (0.2ms) SELECT COUNT(has_many_through_fields.*,
42727
+ COUNT(belongs_to_fields.id)
42728
+ belongs_to_fields_has_many_count) AS count_has_many_through_fields_all_count_belongs_to_fields_id_belongs_to_fields_has_many_count, has_many_through_fields.id AS has_many_through_fields_id FROM "has_many_through_fields" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."has_many_through_field_id" = "has_many_through_fields"."id" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_many_field_id" = "has_many_fields"."id" GROUP BY has_many_through_fields.id ORDER BY belongs_to_fields_has_many_count DESC
42729
+  (0.1ms) rollback transaction
42730
+  (0.2ms) begin transaction
42731
+ -----------------------------------------------------------------
42732
+ ForestLiana::ResourcesGetterTest: test_StringField_page_1_size_15
42733
+ -----------------------------------------------------------------
42734
+ StringField Load (0.5ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC LIMIT 15 OFFSET 0
42735
+  (0.1ms) SELECT COUNT(*) FROM "string_fields"
42736
+  (0.1ms) rollback transaction
42737
+  (0.1ms) begin transaction
42738
+ ----------------------------------------------------------------
42739
+ ForestLiana::ResourcesGetterTest: test_StringField_sort_by_field
42740
+ ----------------------------------------------------------------
42741
+ StringField Load (0.2ms) SELECT "string_fields".* FROM "string_fields" ORDER BY field DESC LIMIT 10 OFFSET 0
42742
+  (0.1ms) SELECT COUNT(*) FROM "string_fields"
42743
+  (0.0ms) rollback transaction
42744
+  (0.1ms) begin transaction
42745
+ --------------------------------------------------------------------
42746
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_one_association
42747
+ --------------------------------------------------------------------
42748
+ SQL (0.7ms) SELECT "has_one_fields"."id" AS t0_r0, "belongs_to_fields"."id" AS t1_r0, "belongs_to_fields"."has_one_field_id" AS t1_r1, "belongs_to_fields"."has_many_class_name_field_id" AS t1_r2, "belongs_to_fields"."has_many_field_id" AS t1_r3, "belongs_to_class_name_fields"."id" AS t2_r0, "belongs_to_class_name_fields"."foo_id" AS t2_r1 FROM "has_one_fields" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_one_field_id" = "has_one_fields"."id" LEFT OUTER JOIN "belongs_to_class_name_fields" ON "belongs_to_class_name_fields"."foo_id" = "has_one_fields"."id" ORDER BY belongs_to_fields.id DESC LIMIT 10 OFFSET 0
42749
+  (0.2ms) SELECT COUNT(DISTINCT "has_one_fields"."id") FROM "has_one_fields" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_one_field_id" = "has_one_fields"."id" LEFT OUTER JOIN "belongs_to_class_name_fields" ON "belongs_to_class_name_fields"."foo_id" = "has_one_fields"."id"
42750
+  (0.1ms) rollback transaction
42751
+  (0.1ms) begin transaction
42752
+ -----------------------------------------------------------
42753
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
42754
+ -----------------------------------------------------------
42755
+  (0.1ms) rollback transaction
42756
+  (0.1ms) begin transaction
42757
+ -------------------------------------------------------------------------
42758
+ ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
42759
+ -------------------------------------------------------------------------
42760
+  (0.0ms) rollback transaction
42761
+  (0.1ms) begin transaction
42762
+ ----------------------------------------------------------------------------------
42763
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
42764
+ ----------------------------------------------------------------------------------
42765
+  (0.1ms) rollback transaction
42766
+  (0.1ms) begin transaction
42767
+ --------------------------------------------------------
42768
+ ForestLiana::SchemaAdapterTest: test_hasOne_relationship
42769
+ --------------------------------------------------------
42770
+  (0.2ms) rollback transaction
42771
+  (0.1ms) begin transaction
42772
+ ------------------------------------------------------------------------
42773
+ ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
42774
+ ------------------------------------------------------------------------
42775
+  (0.1ms) rollback transaction
42776
+  (0.1ms) begin transaction
42777
+ --------------------------------------------------------------------------
42778
+ ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
42779
+ --------------------------------------------------------------------------
42780
+  (0.1ms) rollback transaction
42781
+  (0.1ms) begin transaction
42782
+ ---------------------------------------------------------
42783
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationship
42784
+ ---------------------------------------------------------
42785
+  (0.1ms) rollback transaction
42786
+  (0.1ms) begin transaction
42787
+ ------------------------------------------------------------------------------------
42788
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
42789
+ ------------------------------------------------------------------------------------
42790
+  (0.1ms) rollback transaction
42791
+  (0.1ms) begin transaction
42792
+ ---------------------------------------------------------------------------
42793
+ ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
42794
+ ---------------------------------------------------------------------------
42795
+  (0.1ms) rollback transaction
42796
+  (0.1ms) begin transaction
42797
+ --------------------------------------------------------------------------
42798
+ ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
42799
+ --------------------------------------------------------------------------
42800
+  (0.1ms) rollback transaction
42801
+  (0.1ms) begin transaction
42802
+ ---------------------------------------------------------------------
42803
+ ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
42804
+ ---------------------------------------------------------------------
42805
+  (0.1ms) rollback transaction
42806
+  (0.2ms) begin transaction
42807
+ -------------------------------------------------------------------------
42808
+ ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
42809
+ -------------------------------------------------------------------------
42810
+  (0.1ms) rollback transaction
42811
+  (0.1ms) begin transaction
42812
+ ---------------------------
42813
+ ForestLianaTest: test_truth
42814
+ ---------------------------
42815
+  (0.0ms) rollback transaction
42816
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
42817
+  (0.3ms) begin transaction
42818
+ Fixture Delete (2.8ms) DELETE FROM "belongs_to_fields"
42819
+ Fixture Insert (0.5ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (1, 1, 1)
42820
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (2, 2, 1)
42821
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (3, 3, 1)
42822
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (4, 4, 2)
42823
+ Fixture Insert (0.5ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (5, 5, 2)
42824
+ Fixture Insert (0.3ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (6, 6, 2)
42825
+ Fixture Insert (0.2ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (7, 7, 3)
42826
+ Fixture Insert (0.4ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (8, 8, 3)
42827
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (9, 9, 3)
42828
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (10, 10, 4)
42829
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (11, 11, 4)
42830
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (12, 12, 4)
42831
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (13, 13, 5)
42832
+ Fixture Insert (0.4ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (14, 14, 5)
42833
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (15, 15, 5)
42834
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (16, 16, 6)
42835
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (17, 17, 6)
42836
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (18, 18, 6)
42837
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (19, 19, 7)
42838
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (20, 20, 7)
42839
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (21, 21, 7)
42840
+ Fixture Insert (0.4ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (22, 22, 7)
42841
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (23, 23, 8)
42842
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (24, 24, 8)
42843
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (25, 25, 9)
42844
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (26, 26, 9)
42845
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (27, 27, 9)
42846
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (28, 28, 10)
42847
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (29, 29, 10)
42848
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (30, 30, 10)
42849
+ Fixture Delete (0.6ms) DELETE FROM "has_many_fields"
42850
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (1)
42851
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (2)
42852
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (3)
42853
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (4)
42854
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (5, 3)
42855
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (6, 2)
42856
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (7)
42857
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (8, 2)
42858
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (9)
42859
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (10)
42860
+ Fixture Delete (0.3ms) DELETE FROM "has_many_through_fields"
42861
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (1)
42862
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (2)
42863
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (3)
42864
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (4)
42865
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (5)
42866
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (6)
42867
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (7)
42868
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (8)
42869
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (9)
42870
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (10)
42871
+ Fixture Delete (0.3ms) DELETE FROM "has_one_fields"
42872
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (1)
42873
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (2)
42874
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (3)
42875
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (4)
42876
+ Fixture Insert (0.6ms) INSERT INTO "has_one_fields" ("id") VALUES (5)
42877
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (6)
42878
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (7)
42879
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (8)
42880
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (9)
42881
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (10)
42882
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (11)
42883
+ Fixture Insert (0.6ms) INSERT INTO "has_one_fields" ("id") VALUES (12)
42884
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (13)
42885
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (14)
42886
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (15)
42887
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (16)
42888
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (17)
42889
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (18)
42890
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (19)
42891
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (20)
42892
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (21)
42893
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (22)
42894
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (23)
42895
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (24)
42896
+ Fixture Insert (0.2ms) INSERT INTO "has_one_fields" ("id") VALUES (25)
42897
+ Fixture Insert (0.9ms) INSERT INTO "has_one_fields" ("id") VALUES (26)
42898
+ Fixture Insert (0.3ms) INSERT INTO "has_one_fields" ("id") VALUES (27)
42899
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (28)
42900
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (29)
42901
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (30)
42902
+ Fixture Delete (0.4ms) DELETE FROM "string_fields"
42903
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (1, 'Test 1')
42904
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (2, 'Test 2')
42905
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (3, 'Test 3')
42906
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (4, 'Test 4')
42907
+ Fixture Insert (0.2ms) INSERT INTO "string_fields" ("id", "field") VALUES (5, 'Test 5')
42908
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (6, 'Test 6')
42909
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (7, 'Test 7')
42910
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (8, 'Test 8')
42911
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (9, 'Test 9')
42912
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (10, 'Test 10')
42913
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (11, 'Test 11')
42914
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (12, 'Test 12')
42915
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (13, 'Test 13')
42916
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (14, 'Test 14')
42917
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (15, 'Test 15')
42918
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (16, 'Test 16')
42919
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (17, 'Test 17')
42920
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (18, 'Test 18')
42921
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (19, 'Test 19')
42922
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (20, 'Test 20')
42923
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (21, 'Test 21')
42924
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (22, 'Test 22')
42925
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (23, 'Test 23')
42926
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (24, 'Test 24')
42927
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (25, 'Test 25')
42928
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (26, 'Test 26')
42929
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (27, 'Test 27')
42930
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (28, 'Test 28')
42931
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (29, 'Test 29')
42932
+ Fixture Insert (0.2ms) INSERT INTO "string_fields" ("id", "field") VALUES (30, 'Test 30')
42933
+  (0.9ms) commit transaction
42934
+  (0.1ms) begin transaction
42935
+ ----------------------------------------------------------------
42936
+ ForestLiana::ResourcesGetterTest: test_StringField_sort_by_field
42937
+ ----------------------------------------------------------------
42938
+ StringField Load (0.4ms) SELECT "string_fields".* FROM "string_fields" ORDER BY field DESC LIMIT 10 OFFSET 0
42939
+  (0.1ms) SELECT COUNT(*) FROM "string_fields"
42940
+  (0.1ms) rollback transaction
42941
+  (0.1ms) begin transaction
42942
+ -----------------------------------------------------------------------
42943
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_belongs_to_association
42944
+ -----------------------------------------------------------------------
42945
+ SQL (0.4ms) SELECT "belongs_to_fields"."id" AS t0_r0, "belongs_to_fields"."has_one_field_id" AS t0_r1, "belongs_to_fields"."has_many_class_name_field_id" AS t0_r2, "belongs_to_fields"."has_many_field_id" AS t0_r3, "has_one_fields"."id" AS t1_r0, "has_many_fields"."id" AS t2_r0, "has_many_fields"."has_many_through_field_id" AS t2_r1, "has_many_class_name_fields"."id" AS t3_r0 FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id" ORDER BY has_one_fields.id ASC LIMIT 10 OFFSET 0
42946
+  (0.3ms) SELECT COUNT(DISTINCT "belongs_to_fields"."id") FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id"
42947
+  (0.1ms) rollback transaction
42948
+  (0.2ms) begin transaction
42949
+ --------------------------------------------------------------------
42950
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_one_association
42951
+ --------------------------------------------------------------------
42952
+ SQL (0.7ms) SELECT "has_one_fields"."id" AS t0_r0, "belongs_to_fields"."id" AS t1_r0, "belongs_to_fields"."has_one_field_id" AS t1_r1, "belongs_to_fields"."has_many_class_name_field_id" AS t1_r2, "belongs_to_fields"."has_many_field_id" AS t1_r3, "belongs_to_class_name_fields"."id" AS t2_r0, "belongs_to_class_name_fields"."foo_id" AS t2_r1 FROM "has_one_fields" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_one_field_id" = "has_one_fields"."id" LEFT OUTER JOIN "belongs_to_class_name_fields" ON "belongs_to_class_name_fields"."foo_id" = "has_one_fields"."id" ORDER BY belongs_to_fields.id DESC LIMIT 10 OFFSET 0
42953
+  (0.2ms) SELECT COUNT(DISTINCT "has_one_fields"."id") FROM "has_one_fields" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_one_field_id" = "has_one_fields"."id" LEFT OUTER JOIN "belongs_to_class_name_fields" ON "belongs_to_class_name_fields"."foo_id" = "has_one_fields"."id"
42954
+  (0.1ms) rollback transaction
42955
+  (0.1ms) begin transaction
42956
+ -----------------------------------------------------------------
42957
+ ForestLiana::ResourcesGetterTest: test_StringField_page_1_size_15
42958
+ -----------------------------------------------------------------
42959
+ StringField Load (0.1ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC LIMIT 15 OFFSET 0
42960
+  (0.1ms) SELECT COUNT(*) FROM "string_fields"
42961
+  (0.0ms) rollback transaction
42962
+  (0.1ms) begin transaction
42963
+ -----------------------------------------------------------------
42964
+ ForestLiana::ResourcesGetterTest: test_StringField_page_2_size_10
42965
+ -----------------------------------------------------------------
42966
+ StringField Load (0.1ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC LIMIT 10 OFFSET 10
42967
+  (0.0ms) SELECT COUNT(*) FROM "string_fields"
42968
+  (0.1ms) rollback transaction
42969
+  (0.0ms) begin transaction
42970
+ ---------------------------
42971
+ ForestLianaTest: test_truth
42972
+ ---------------------------
42973
+  (0.0ms) rollback transaction
42974
+  (0.0ms) begin transaction
42975
+ -------------------------------------------------------------------------
42976
+ ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
42977
+ -------------------------------------------------------------------------
42978
+  (0.1ms) rollback transaction
42979
+  (0.1ms) begin transaction
42980
+ --------------------------------------------------------
42981
+ ForestLiana::SchemaAdapterTest: test_hasOne_relationship
42982
+ --------------------------------------------------------
42983
+  (0.1ms) rollback transaction
42984
+  (0.1ms) begin transaction
42985
+ ----------------------------------------------------------------------------------
42986
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
42987
+ ----------------------------------------------------------------------------------
42988
+  (0.1ms) rollback transaction
42989
+  (0.1ms) begin transaction
42990
+ --------------------------------------------------------------------------
42991
+ ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
42992
+ --------------------------------------------------------------------------
42993
+  (0.1ms) rollback transaction
42994
+  (0.1ms) begin transaction
42995
+ -------------------------------------------------------------------------
42996
+ ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
42997
+ -------------------------------------------------------------------------
42998
+  (0.0ms) rollback transaction
42999
+  (0.1ms) begin transaction
43000
+ -----------------------------------------------------------
43001
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
43002
+ -----------------------------------------------------------
43003
+  (0.0ms) rollback transaction
43004
+  (0.0ms) begin transaction
43005
+ ------------------------------------------------------------------------------------
43006
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
43007
+ ------------------------------------------------------------------------------------
43008
+  (0.0ms) rollback transaction
43009
+  (0.1ms) begin transaction
43010
+ ------------------------------------------------------------------------
43011
+ ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
43012
+ ------------------------------------------------------------------------
43013
+  (0.1ms) rollback transaction
43014
+  (0.1ms) begin transaction
43015
+ ---------------------------------------------------------
43016
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationship
43017
+ ---------------------------------------------------------
43018
+  (0.1ms) rollback transaction
43019
+  (0.1ms) begin transaction
43020
+ ---------------------------------------------------------------------
43021
+ ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
43022
+ ---------------------------------------------------------------------
43023
+  (0.1ms) rollback transaction
43024
+  (0.2ms) begin transaction
43025
+ ---------------------------------------------------------------------------
43026
+ ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
43027
+ ---------------------------------------------------------------------------
43028
+  (0.1ms) rollback transaction
43029
+  (0.1ms) begin transaction
43030
+ --------------------------------------------------------------------------
43031
+ ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
43032
+ --------------------------------------------------------------------------
43033
+  (0.1ms) rollback transaction