forest_liana 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c7bc5481047d20e3568b2fc34fcc8865aa9fd457
4
- data.tar.gz: c569ab44c50ab17daedadaa5c5e560df6a5b7a9a
3
+ metadata.gz: 9a0907dc2062aaf67fa99f72862d58c68d2a36ce
4
+ data.tar.gz: cd57f54cb3f4d4e674e2e370df710cb33f337f23
5
5
  SHA512:
6
- metadata.gz: 5bb2350b16c3b3c4a8629569f1fdf5eaa665c4f13394325e5c49b91a253168d535835521f60e2d1b8c73843c12c61e800aa7a5854a336fa9ef1d820731f45415
7
- data.tar.gz: ea1e38e6c4fe322eaeb20a4186e9c00e3455764a0c866c95df5ee22949d09e94d7bb77664105a5b9675a1656d5cc2ed09d9d9e8ed92ce46539c3fb3a4b71b9dd
6
+ metadata.gz: 028f4de19eccc2a8c1ecb64a26d8cba8a3142d35f204aea6451ad16fbbfdde95132d05a56bcae6785587ebadd71f74eb14a4a1557b4c6cad3bbbbcf4308c285e
7
+ data.tar.gz: e63c20cf0d0de4152882b25a9f8705c7aa8e279609ede9880cf8775a602e222f069af7c404512541554765de12e4b10f3b8cea487d495b33c21922191eacd43e
@@ -31,15 +31,10 @@ module ForestLiana
31
31
  end
32
32
 
33
33
  def update
34
- record = @resource.find(params[:id])
35
-
36
- if Rails::VERSION::MAJOR == 4
37
- record.update_attributes!(resource_params.permit!)
38
- else
39
- record.update_attributes!(resource_params, without_protection: true)
40
- end
34
+ getter = ResourceUpdater.new(@resource, params)
35
+ getter.perform
41
36
 
42
- render json: serialize_model(record, include: includes)
37
+ render json: serialize_model(getter.record, include: includes)
43
38
  end
44
39
 
45
40
  def destroy
@@ -9,12 +9,13 @@ module ForestLiana
9
9
  def perform
10
10
  @attributes = extract_attributes
11
11
  extract_relationships
12
+ extract_paperclip
12
13
 
13
14
  @attributes
14
15
  end
15
16
 
16
17
  def extract_attributes
17
- @params['data']['attributes']
18
+ @params['data']['attributes'].select {|attr| column?(attr)}
18
19
  end
19
20
 
20
21
  def extract_relationships
@@ -33,6 +34,27 @@ module ForestLiana
33
34
  end
34
35
  end
35
36
 
37
+ def extract_paperclip
38
+ return unless @resource.try(:attachment_definitions)
39
+
40
+ paperclip_attr = @params['data']['attributes']
41
+ .select do |attr|
42
+ !column?(attr) &&
43
+ paperclip_handler?(@params['data']['attributes'][attr])
44
+ end
45
+
46
+ @attributes.merge!(paperclip_attr) if paperclip_attr
47
+ end
48
+
49
+ def paperclip_handler?(attr)
50
+ begin
51
+ Paperclip.io_adapters.handler_for(attr)
52
+ true
53
+ rescue Paperclip::AdapterRegistry::NoHandlerError
54
+ false
55
+ end
56
+ end
57
+
36
58
  def column?(attribute)
37
59
  @resource.columns.find {|x| x.name == attribute}.present?
38
60
  end
@@ -73,6 +73,13 @@ module ForestLiana
73
73
  serializer.attribute(attr)
74
74
  end
75
75
 
76
+ # Paperclip url attribute
77
+ if active_record_class.try(:attachment_definitions)
78
+ active_record_class.attachment_definitions.each do |key, value|
79
+ serializer.attribute(key) { |x| object.send(key) }
80
+ end
81
+ end
82
+
76
83
  SchemaUtils.associations(active_record_class).each do |a|
77
84
  serializer.send(serializer_association(a), a.name)
78
85
  end
@@ -0,0 +1,25 @@
1
+ module ForestLiana
2
+ class ResourceUpdater
3
+ attr_accessor :record
4
+
5
+ def initialize(resource, params)
6
+ @resource = resource
7
+ @params = params
8
+ end
9
+
10
+ def perform
11
+ @record = @resource.find(@params[:id])
12
+
13
+ if Rails::VERSION::MAJOR == 4
14
+ @record.update_attributes!(resource_params.permit!)
15
+ else
16
+ @record.update_attributes!(resource_params, without_protection: true)
17
+ end
18
+ end
19
+
20
+ def resource_params
21
+ ResourceDeserializer.new(@resource, @params[:resource]).perform
22
+ end
23
+
24
+ end
25
+ end
@@ -23,7 +23,7 @@ module ForestLiana
23
23
  private
24
24
 
25
25
  def search_query
26
- SearchQueryBuilder.new(@resource.includes(includes), @params).perform
26
+ SearchQueryBuilder.new(@resource, @params).perform
27
27
  end
28
28
 
29
29
  def sort_query
@@ -31,8 +31,11 @@ module ForestLiana
31
31
  @params[:sort].split(',').each do |field|
32
32
  order = detect_sort_order(@params[:sort])
33
33
  field.slice!(0) if order == :desc
34
- field = detect_reference(field)
35
34
 
35
+ ref = field.split('.')[0]
36
+ @records = @records.includes(ref) if association?(ref)
37
+
38
+ field = detect_reference(field)
36
39
  association = @resource.reflect_on_association(field.to_sym)
37
40
  if [:has_many, :has_and_belongs_to_many].include?(
38
41
  association.try(:macro))
@@ -84,6 +87,10 @@ module ForestLiana
84
87
  end
85
88
  end
86
89
 
90
+ def association?(field)
91
+ @resource.reflect_on_association(field.to_sym).present?
92
+ end
93
+
87
94
  def includes
88
95
  SchemaUtils.associations(@resource).map(&:name)
89
96
  end
@@ -5,7 +5,11 @@ module ForestLiana
5
5
  end
6
6
 
7
7
  def perform
8
- @collection = Collection.new({ name: @model.name.tableize, fields: [] })
8
+ @collection = ForestLiana::Collection.new({
9
+ name: @model.name.tableize,
10
+ fields: []
11
+ })
12
+
9
13
  add_columns
10
14
  add_associations
11
15
 
@@ -18,6 +22,13 @@ module ForestLiana
18
22
  @model.columns.each do |column|
19
23
  @collection.fields << get_schema_for_column(column)
20
24
  end
25
+
26
+ # Paperclip url attribute
27
+ if @model.try(:attachment_definitions)
28
+ @model.attachment_definitions.each do |key, value|
29
+ @collection.fields << { field: key, type: 'File' }
30
+ end
31
+ end
21
32
  end
22
33
 
23
34
  def add_associations
@@ -1,3 +1,3 @@
1
1
  module ForestLiana
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
Binary file
@@ -39314,5 +39314,1219 @@ ForestLiana::SchemaAdapterTest: test_hasMany_relationship
39314
39314
   (0.0ms) begin transaction
39315
39315
  ---------------------------
39316
39316
  ForestLianaTest: test_truth
39317
+ ---------------------------
39318
+  (0.0ms) rollback transaction
39319
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
39320
+  (0.1ms) begin transaction
39321
+ Fixture Delete (1.5ms) DELETE FROM "belongs_to_fields"
39322
+ Fixture Insert (0.4ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (1, 1, 1)
39323
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (2, 2, 1)
39324
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (3, 3, 1)
39325
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (4, 4, 2)
39326
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (5, 5, 2)
39327
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (6, 6, 2)
39328
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (7, 7, 3)
39329
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (8, 8, 3)
39330
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (9, 9, 3)
39331
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (10, 10, 4)
39332
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (11, 11, 4)
39333
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (12, 12, 4)
39334
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (13, 13, 5)
39335
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (14, 14, 5)
39336
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (15, 15, 5)
39337
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (16, 16, 6)
39338
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (17, 17, 6)
39339
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (18, 18, 6)
39340
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (19, 19, 7)
39341
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (20, 20, 7)
39342
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (21, 21, 7)
39343
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (22, 22, 7)
39344
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (23, 23, 8)
39345
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (24, 24, 8)
39346
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (25, 25, 9)
39347
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (26, 26, 9)
39348
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (27, 27, 9)
39349
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (28, 28, 10)
39350
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (29, 29, 10)
39351
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (30, 30, 10)
39352
+ Fixture Delete (0.6ms) DELETE FROM "has_many_fields"
39353
+ Fixture Insert (0.2ms) INSERT INTO "has_many_fields" ("id") VALUES (1)
39354
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (2)
39355
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (3)
39356
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (4)
39357
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (5, 3)
39358
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (6, 2)
39359
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (7)
39360
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (8, 2)
39361
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (9)
39362
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (10)
39363
+ Fixture Delete (0.4ms) DELETE FROM "has_many_through_fields"
39364
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (1)
39365
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (2)
39366
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (3)
39367
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (4)
39368
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (5)
39369
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (6)
39370
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (7)
39371
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (8)
39372
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (9)
39373
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (10)
39374
+ Fixture Delete (0.4ms) DELETE FROM "has_one_fields"
39375
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (1)
39376
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (2)
39377
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (3)
39378
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (4)
39379
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (5)
39380
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (6)
39381
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (7)
39382
+ Fixture Insert (0.2ms) INSERT INTO "has_one_fields" ("id") VALUES (8)
39383
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (9)
39384
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (10)
39385
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (11)
39386
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (12)
39387
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (13)
39388
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (14)
39389
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (15)
39390
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (16)
39391
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (17)
39392
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (18)
39393
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (19)
39394
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (20)
39395
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (21)
39396
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (22)
39397
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (23)
39398
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (24)
39399
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (25)
39400
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (26)
39401
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (27)
39402
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (28)
39403
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (29)
39404
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (30)
39405
+ Fixture Delete (0.5ms) DELETE FROM "string_fields"
39406
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (1, 'Test 1')
39407
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (2, 'Test 2')
39408
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (3, 'Test 3')
39409
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (4, 'Test 4')
39410
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (5, 'Test 5')
39411
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (6, 'Test 6')
39412
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (7, 'Test 7')
39413
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (8, 'Test 8')
39414
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (9, 'Test 9')
39415
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (10, 'Test 10')
39416
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (11, 'Test 11')
39417
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (12, 'Test 12')
39418
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (13, 'Test 13')
39419
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (14, 'Test 14')
39420
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (15, 'Test 15')
39421
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (16, 'Test 16')
39422
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (17, 'Test 17')
39423
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (18, 'Test 18')
39424
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (19, 'Test 19')
39425
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (20, 'Test 20')
39426
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (21, 'Test 21')
39427
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (22, 'Test 22')
39428
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (23, 'Test 23')
39429
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (24, 'Test 24')
39430
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (25, 'Test 25')
39431
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (26, 'Test 26')
39432
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (27, 'Test 27')
39433
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (28, 'Test 28')
39434
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (29, 'Test 29')
39435
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (30, 'Test 30')
39436
+  (0.7ms) commit transaction
39437
+  (0.1ms) begin transaction
39438
+ ----------------------------------------------------------------
39439
+ ForestLiana::ResourcesGetterTest: test_StringField_sort_by_field
39440
+ ----------------------------------------------------------------
39441
+ StringField Load (0.3ms) SELECT "string_fields".* FROM "string_fields" ORDER BY field DESC LIMIT 10 OFFSET 0
39442
+ StringField Load (0.2ms) SELECT "string_fields".* FROM "string_fields" ORDER BY field DESC
39443
+  (0.1ms) rollback transaction
39444
+  (0.1ms) begin transaction
39445
+ ---------------------------------------------------------------------
39446
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_many_association
39447
+ ---------------------------------------------------------------------
39448
+ HasManyField Load (0.4ms) SELECT has_many_fields.*,
39449
+ COUNT(belongs_to_fields.id)
39450
+ 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
39451
+ HasManyField Load (0.1ms) SELECT has_many_fields.*,
39452
+ COUNT(belongs_to_fields.id)
39453
+ 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
39454
+  (0.1ms) rollback transaction
39455
+  (0.0ms) begin transaction
39456
+ -----------------------------------------------------------------
39457
+ ForestLiana::ResourcesGetterTest: test_StringField_page_1_size_15
39458
+ -----------------------------------------------------------------
39459
+ StringField Load (0.1ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC LIMIT 15 OFFSET 0
39460
+ StringField Load (0.1ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC
39461
+  (0.0ms) rollback transaction
39462
+  (0.0ms) begin transaction
39463
+ -----------------------------------------------------------------
39464
+ ForestLiana::ResourcesGetterTest: test_StringField_page_2_size_10
39465
+ -----------------------------------------------------------------
39466
+ StringField Load (0.1ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC LIMIT 10 OFFSET 10
39467
+ StringField Load (0.1ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC
39468
+  (0.0ms) rollback transaction
39469
+  (0.1ms) begin transaction
39470
+ --------------------------------------------------------------------
39471
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_one_association
39472
+ --------------------------------------------------------------------
39473
+ HasOneField Load (0.1ms) SELECT "has_one_fields".* FROM "has_one_fields" ORDER BY belongs_to_fields.id DESC LIMIT 10 OFFSET 0
39474
+ SQLite3::SQLException: no such column: belongs_to_fields.id: SELECT "has_one_fields".* FROM "has_one_fields" ORDER BY belongs_to_fields.id DESC LIMIT 10 OFFSET 0
39475
+  (0.0ms) rollback transaction
39476
+  (0.1ms) begin transaction
39477
+ -----------------------------------------------------------------------------
39478
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_many_through_association
39479
+ -----------------------------------------------------------------------------
39480
+ HasManyThroughField Load (0.2ms) SELECT has_many_through_fields.*,
39481
+ COUNT(belongs_to_fields.id)
39482
+ 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
39483
+ HasManyThroughField Load (0.1ms) SELECT has_many_through_fields.*,
39484
+ COUNT(belongs_to_fields.id)
39485
+ 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
39486
+  (0.0ms) rollback transaction
39487
+  (0.1ms) begin transaction
39488
+ -----------------------------------------------------------------------
39489
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_belongs_to_association
39490
+ -----------------------------------------------------------------------
39491
+ BelongsToField Load (0.1ms) SELECT "belongs_to_fields".* FROM "belongs_to_fields" ORDER BY has_one_fields.id ASC LIMIT 10 OFFSET 0
39492
+ SQLite3::SQLException: no such column: has_one_fields.id: SELECT "belongs_to_fields".* FROM "belongs_to_fields" ORDER BY has_one_fields.id ASC LIMIT 10 OFFSET 0
39493
+  (0.1ms) rollback transaction
39494
+  (0.0ms) begin transaction
39495
+ --------------------------------------------------------------------------
39496
+ ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
39497
+ --------------------------------------------------------------------------
39498
+  (0.1ms) rollback transaction
39499
+  (0.1ms) begin transaction
39500
+ -------------------------------------------------------------------------
39501
+ ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
39502
+ -------------------------------------------------------------------------
39503
+  (0.1ms) rollback transaction
39504
+  (0.1ms) begin transaction
39505
+ -----------------------------------------------------------
39506
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
39507
+ -----------------------------------------------------------
39508
+  (0.1ms) rollback transaction
39509
+  (0.1ms) begin transaction
39510
+ -------------------------------------------------------------------------
39511
+ ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
39512
+ -------------------------------------------------------------------------
39513
+  (0.0ms) rollback transaction
39514
+  (0.1ms) begin transaction
39515
+ ------------------------------------------------------------------------
39516
+ ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
39517
+ ------------------------------------------------------------------------
39518
+  (0.1ms) rollback transaction
39519
+  (0.1ms) begin transaction
39520
+ --------------------------------------------------------------------------
39521
+ ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
39522
+ --------------------------------------------------------------------------
39523
+  (0.1ms) rollback transaction
39524
+  (0.1ms) begin transaction
39525
+ --------------------------------------------------------
39526
+ ForestLiana::SchemaAdapterTest: test_hasOne_relationship
39527
+ --------------------------------------------------------
39528
+  (0.1ms) rollback transaction
39529
+  (0.2ms) begin transaction
39530
+ ---------------------------------------------------------
39531
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationship
39532
+ ---------------------------------------------------------
39533
+  (0.0ms) rollback transaction
39534
+  (0.1ms) begin transaction
39535
+ ---------------------------------------------------------------------
39536
+ ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
39537
+ ---------------------------------------------------------------------
39538
+  (0.1ms) rollback transaction
39539
+  (0.1ms) begin transaction
39540
+ ----------------------------------------------------------------------------------
39541
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
39542
+ ----------------------------------------------------------------------------------
39543
+  (0.0ms) rollback transaction
39544
+  (0.1ms) begin transaction
39545
+ ---------------------------------------------------------------------------
39546
+ ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
39547
+ ---------------------------------------------------------------------------
39548
+  (0.1ms) rollback transaction
39549
+  (0.1ms) begin transaction
39550
+ ------------------------------------------------------------------------------------
39551
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
39552
+ ------------------------------------------------------------------------------------
39553
+  (0.0ms) rollback transaction
39554
+  (0.0ms) begin transaction
39555
+ ---------------------------
39556
+ ForestLianaTest: test_truth
39557
+ ---------------------------
39558
+  (0.0ms) rollback transaction
39559
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
39560
+  (0.1ms) begin transaction
39561
+ Fixture Delete (1.4ms) DELETE FROM "belongs_to_fields"
39562
+ Fixture Insert (0.5ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (1, 1, 1)
39563
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (2, 2, 1)
39564
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (3, 3, 1)
39565
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (4, 4, 2)
39566
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (5, 5, 2)
39567
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (6, 6, 2)
39568
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (7, 7, 3)
39569
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (8, 8, 3)
39570
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (9, 9, 3)
39571
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (10, 10, 4)
39572
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (11, 11, 4)
39573
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (12, 12, 4)
39574
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (13, 13, 5)
39575
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (14, 14, 5)
39576
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (15, 15, 5)
39577
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (16, 16, 6)
39578
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (17, 17, 6)
39579
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (18, 18, 6)
39580
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (19, 19, 7)
39581
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (20, 20, 7)
39582
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (21, 21, 7)
39583
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (22, 22, 7)
39584
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (23, 23, 8)
39585
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (24, 24, 8)
39586
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (25, 25, 9)
39587
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (26, 26, 9)
39588
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (27, 27, 9)
39589
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (28, 28, 10)
39590
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (29, 29, 10)
39591
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (30, 30, 10)
39592
+ Fixture Delete (0.8ms) DELETE FROM "has_many_fields"
39593
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (1)
39594
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (2)
39595
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (3)
39596
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (4)
39597
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (5, 3)
39598
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (6, 2)
39599
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (7)
39600
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (8, 2)
39601
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (9)
39602
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (10)
39603
+ Fixture Delete (0.4ms) DELETE FROM "has_many_through_fields"
39604
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (1)
39605
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (2)
39606
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (3)
39607
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (4)
39608
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (5)
39609
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (6)
39610
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (7)
39611
+ Fixture Insert (0.3ms) INSERT INTO "has_many_through_fields" ("id") VALUES (8)
39612
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (9)
39613
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (10)
39614
+ Fixture Delete (0.4ms) DELETE FROM "has_one_fields"
39615
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (1)
39616
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (2)
39617
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (3)
39618
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (4)
39619
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (5)
39620
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (6)
39621
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (7)
39622
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (8)
39623
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (9)
39624
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (10)
39625
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (11)
39626
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (12)
39627
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (13)
39628
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (14)
39629
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (15)
39630
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (16)
39631
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (17)
39632
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (18)
39633
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (19)
39634
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (20)
39635
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (21)
39636
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (22)
39637
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (23)
39638
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (24)
39639
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (25)
39640
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (26)
39641
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (27)
39642
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (28)
39643
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (29)
39644
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (30)
39645
+ Fixture Delete (0.4ms) DELETE FROM "string_fields"
39646
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (1, 'Test 1')
39647
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (2, 'Test 2')
39648
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (3, 'Test 3')
39649
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (4, 'Test 4')
39650
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (5, 'Test 5')
39651
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (6, 'Test 6')
39652
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (7, 'Test 7')
39653
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (8, 'Test 8')
39654
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (9, 'Test 9')
39655
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (10, 'Test 10')
39656
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (11, 'Test 11')
39657
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (12, 'Test 12')
39658
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (13, 'Test 13')
39659
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (14, 'Test 14')
39660
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (15, 'Test 15')
39661
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (16, 'Test 16')
39662
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (17, 'Test 17')
39663
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (18, 'Test 18')
39664
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (19, 'Test 19')
39665
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (20, 'Test 20')
39666
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (21, 'Test 21')
39667
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (22, 'Test 22')
39668
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (23, 'Test 23')
39669
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (24, 'Test 24')
39670
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (25, 'Test 25')
39671
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (26, 'Test 26')
39672
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (27, 'Test 27')
39673
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (28, 'Test 28')
39674
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (29, 'Test 29')
39675
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (30, 'Test 30')
39676
+  (1.0ms) commit transaction
39677
+  (0.0ms) begin transaction
39678
+ ---------------------------------------------------------------------
39679
+ ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
39680
+ ---------------------------------------------------------------------
39681
+  (0.1ms) rollback transaction
39682
+  (0.0ms) begin transaction
39683
+ -----------------------------------------------------------
39684
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
39685
+ -----------------------------------------------------------
39686
+  (0.1ms) rollback transaction
39687
+  (0.0ms) begin transaction
39688
+ -------------------------------------------------------------------------
39689
+ ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
39690
+ -------------------------------------------------------------------------
39691
+  (0.0ms) rollback transaction
39692
+  (0.0ms) begin transaction
39693
+ ---------------------------------------------------------
39694
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationship
39695
+ ---------------------------------------------------------
39696
+  (0.0ms) rollback transaction
39697
+  (0.1ms) begin transaction
39698
+ --------------------------------------------------------------------------
39699
+ ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
39700
+ --------------------------------------------------------------------------
39701
+  (0.0ms) rollback transaction
39702
+  (0.1ms) begin transaction
39703
+ -------------------------------------------------------------------------
39704
+ ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
39705
+ -------------------------------------------------------------------------
39706
+  (0.0ms) rollback transaction
39707
+  (0.1ms) begin transaction
39708
+ --------------------------------------------------------------------------
39709
+ ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
39710
+ --------------------------------------------------------------------------
39711
+  (0.1ms) rollback transaction
39712
+  (0.1ms) begin transaction
39713
+ --------------------------------------------------------
39714
+ ForestLiana::SchemaAdapterTest: test_hasOne_relationship
39715
+ --------------------------------------------------------
39716
+  (0.1ms) rollback transaction
39717
+  (0.0ms) begin transaction
39718
+ ------------------------------------------------------------------------------------
39719
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
39720
+ ------------------------------------------------------------------------------------
39721
+  (0.1ms) rollback transaction
39722
+  (0.1ms) begin transaction
39723
+ ----------------------------------------------------------------------------------
39724
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
39725
+ ----------------------------------------------------------------------------------
39726
+  (0.1ms) rollback transaction
39727
+  (0.1ms) begin transaction
39728
+ ------------------------------------------------------------------------
39729
+ ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
39730
+ ------------------------------------------------------------------------
39731
+  (0.0ms) rollback transaction
39732
+  (0.0ms) begin transaction
39733
+ ---------------------------------------------------------------------------
39734
+ ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
39735
+ ---------------------------------------------------------------------------
39736
+  (0.1ms) rollback transaction
39737
+  (0.0ms) begin transaction
39738
+ ---------------------------
39739
+ ForestLianaTest: test_truth
39740
+ ---------------------------
39741
+  (0.0ms) rollback transaction
39742
+  (0.0ms) begin transaction
39743
+ ----------------------------------------------------------------
39744
+ ForestLiana::ResourcesGetterTest: test_StringField_sort_by_field
39745
+ ----------------------------------------------------------------
39746
+ StringField Load (0.3ms) SELECT "string_fields".* FROM "string_fields" ORDER BY field DESC LIMIT 10 OFFSET 0
39747
+ StringField Load (0.2ms) SELECT "string_fields".* FROM "string_fields" ORDER BY field DESC
39748
+  (0.1ms) rollback transaction
39749
+  (0.1ms) begin transaction
39750
+ --------------------------------------------------------------------
39751
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_one_association
39752
+ --------------------------------------------------------------------
39753
+ HasOneField Load (0.2ms) SELECT "has_one_fields".* FROM "has_one_fields" ORDER BY belongs_to_fields.id DESC LIMIT 10 OFFSET 0
39754
+ SQLite3::SQLException: no such column: belongs_to_fields.id: SELECT "has_one_fields".* FROM "has_one_fields" ORDER BY belongs_to_fields.id DESC LIMIT 10 OFFSET 0
39755
+  (0.1ms) rollback transaction
39756
+  (0.0ms) begin transaction
39757
+ -----------------------------------------------------------------------
39758
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_belongs_to_association
39759
+ -----------------------------------------------------------------------
39760
+ BelongsToField Load (0.1ms) SELECT "belongs_to_fields".* FROM "belongs_to_fields" ORDER BY has_one_fields.id ASC LIMIT 10 OFFSET 0
39761
+ SQLite3::SQLException: no such column: has_one_fields.id: SELECT "belongs_to_fields".* FROM "belongs_to_fields" ORDER BY has_one_fields.id ASC LIMIT 10 OFFSET 0
39762
+  (0.1ms) rollback transaction
39763
+  (0.0ms) begin transaction
39764
+ -----------------------------------------------------------------
39765
+ ForestLiana::ResourcesGetterTest: test_StringField_page_2_size_10
39766
+ -----------------------------------------------------------------
39767
+ StringField Load (0.1ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC LIMIT 10 OFFSET 10
39768
+ StringField Load (0.1ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC
39769
+  (0.0ms) rollback transaction
39770
+  (0.0ms) begin transaction
39771
+ ---------------------------------------------------------------------
39772
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_many_association
39773
+ ---------------------------------------------------------------------
39774
+ HasManyField Load (0.3ms) SELECT has_many_fields.*,
39775
+ COUNT(belongs_to_fields.id)
39776
+ 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
39777
+ HasManyField Load (0.2ms) SELECT has_many_fields.*,
39778
+ COUNT(belongs_to_fields.id)
39779
+ 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
39780
+  (0.1ms) rollback transaction
39781
+  (0.1ms) begin transaction
39782
+ -----------------------------------------------------------------
39783
+ ForestLiana::ResourcesGetterTest: test_StringField_page_1_size_15
39784
+ -----------------------------------------------------------------
39785
+ StringField Load (0.2ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC LIMIT 15 OFFSET 0
39786
+ StringField Load (0.1ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC
39787
+  (0.1ms) rollback transaction
39788
+  (0.0ms) begin transaction
39789
+ -----------------------------------------------------------------------------
39790
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_many_through_association
39791
+ -----------------------------------------------------------------------------
39792
+ HasManyThroughField Load (0.2ms) SELECT has_many_through_fields.*,
39793
+ COUNT(belongs_to_fields.id)
39794
+ 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
39795
+ HasManyThroughField Load (0.1ms) SELECT has_many_through_fields.*,
39796
+ COUNT(belongs_to_fields.id)
39797
+ 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
39798
+  (0.1ms) rollback transaction
39799
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
39800
+  (0.1ms) begin transaction
39801
+ Fixture Delete (1.7ms) DELETE FROM "belongs_to_fields"
39802
+ Fixture Insert (0.5ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (1, 1, 1)
39803
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (2, 2, 1)
39804
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (3, 3, 1)
39805
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (4, 4, 2)
39806
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (5, 5, 2)
39807
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (6, 6, 2)
39808
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (7, 7, 3)
39809
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (8, 8, 3)
39810
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (9, 9, 3)
39811
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (10, 10, 4)
39812
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (11, 11, 4)
39813
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (12, 12, 4)
39814
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (13, 13, 5)
39815
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (14, 14, 5)
39816
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (15, 15, 5)
39817
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (16, 16, 6)
39818
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (17, 17, 6)
39819
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (18, 18, 6)
39820
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (19, 19, 7)
39821
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (20, 20, 7)
39822
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (21, 21, 7)
39823
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (22, 22, 7)
39824
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (23, 23, 8)
39825
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (24, 24, 8)
39826
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (25, 25, 9)
39827
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (26, 26, 9)
39828
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (27, 27, 9)
39829
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (28, 28, 10)
39830
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (29, 29, 10)
39831
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (30, 30, 10)
39832
+ Fixture Delete (0.6ms) DELETE FROM "has_many_fields"
39833
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (1)
39834
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (2)
39835
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (3)
39836
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (4)
39837
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (5, 3)
39838
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (6, 2)
39839
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (7)
39840
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (8, 2)
39841
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (9)
39842
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (10)
39843
+ Fixture Delete (0.4ms) DELETE FROM "has_many_through_fields"
39844
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (1)
39845
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (2)
39846
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (3)
39847
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (4)
39848
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (5)
39849
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (6)
39850
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (7)
39851
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (8)
39852
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (9)
39853
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (10)
39854
+ Fixture Delete (0.3ms) DELETE FROM "has_one_fields"
39855
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (1)
39856
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (2)
39857
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (3)
39858
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (4)
39859
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (5)
39860
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (6)
39861
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (7)
39862
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (8)
39863
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (9)
39864
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (10)
39865
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (11)
39866
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (12)
39867
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (13)
39868
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (14)
39869
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (15)
39870
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (16)
39871
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (17)
39872
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (18)
39873
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (19)
39874
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (20)
39875
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (21)
39876
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (22)
39877
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (23)
39878
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (24)
39879
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (25)
39880
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (26)
39881
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (27)
39882
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (28)
39883
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (29)
39884
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (30)
39885
+ Fixture Delete (0.4ms) DELETE FROM "string_fields"
39886
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (1, 'Test 1')
39887
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (2, 'Test 2')
39888
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (3, 'Test 3')
39889
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (4, 'Test 4')
39890
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (5, 'Test 5')
39891
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (6, 'Test 6')
39892
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (7, 'Test 7')
39893
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (8, 'Test 8')
39894
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (9, 'Test 9')
39895
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (10, 'Test 10')
39896
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (11, 'Test 11')
39897
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (12, 'Test 12')
39898
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (13, 'Test 13')
39899
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (14, 'Test 14')
39900
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (15, 'Test 15')
39901
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (16, 'Test 16')
39902
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (17, 'Test 17')
39903
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (18, 'Test 18')
39904
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (19, 'Test 19')
39905
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (20, 'Test 20')
39906
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (21, 'Test 21')
39907
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (22, 'Test 22')
39908
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (23, 'Test 23')
39909
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (24, 'Test 24')
39910
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (25, 'Test 25')
39911
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (26, 'Test 26')
39912
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (27, 'Test 27')
39913
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (28, 'Test 28')
39914
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (29, 'Test 29')
39915
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (30, 'Test 30')
39916
+  (0.9ms) commit transaction
39917
+  (0.0ms) begin transaction
39918
+ ---------------------------
39919
+ ForestLianaTest: test_truth
39920
+ ---------------------------
39921
+  (0.1ms) rollback transaction
39922
+  (0.0ms) begin transaction
39923
+ ---------------------------------------------------------
39924
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationship
39925
+ ---------------------------------------------------------
39926
+  (0.1ms) rollback transaction
39927
+  (0.1ms) begin transaction
39928
+ -----------------------------------------------------------
39929
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
39930
+ -----------------------------------------------------------
39931
+  (0.1ms) rollback transaction
39932
+  (0.1ms) begin transaction
39933
+ --------------------------------------------------------------------------
39934
+ ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
39935
+ --------------------------------------------------------------------------
39936
+  (0.1ms) rollback transaction
39937
+  (0.1ms) begin transaction
39938
+ --------------------------------------------------------------------------
39939
+ ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
39940
+ --------------------------------------------------------------------------
39941
+  (0.1ms) rollback transaction
39942
+  (0.1ms) begin transaction
39943
+ ------------------------------------------------------------------------
39944
+ ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
39945
+ ------------------------------------------------------------------------
39946
+  (0.1ms) rollback transaction
39947
+  (0.0ms) begin transaction
39948
+ ---------------------------------------------------------------------------
39949
+ ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
39950
+ ---------------------------------------------------------------------------
39951
+  (0.1ms) rollback transaction
39952
+  (0.0ms) begin transaction
39953
+ ---------------------------------------------------------------------
39954
+ ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
39955
+ ---------------------------------------------------------------------
39956
+  (0.0ms) rollback transaction
39957
+  (0.0ms) begin transaction
39958
+ -------------------------------------------------------------------------
39959
+ ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
39960
+ -------------------------------------------------------------------------
39961
+  (0.1ms) rollback transaction
39962
+  (0.0ms) begin transaction
39963
+ ------------------------------------------------------------------------------------
39964
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
39965
+ ------------------------------------------------------------------------------------
39966
+  (0.1ms) rollback transaction
39967
+  (0.0ms) begin transaction
39968
+ ----------------------------------------------------------------------------------
39969
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
39970
+ ----------------------------------------------------------------------------------
39971
+  (0.0ms) rollback transaction
39972
+  (0.1ms) begin transaction
39973
+ -------------------------------------------------------------------------
39974
+ ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
39975
+ -------------------------------------------------------------------------
39976
+  (0.0ms) rollback transaction
39977
+  (0.0ms) begin transaction
39978
+ --------------------------------------------------------
39979
+ ForestLiana::SchemaAdapterTest: test_hasOne_relationship
39980
+ --------------------------------------------------------
39981
+  (0.1ms) rollback transaction
39982
+  (0.0ms) begin transaction
39983
+ -----------------------------------------------------------------------
39984
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_belongs_to_association
39985
+ -----------------------------------------------------------------------
39986
+ BelongsToField Load (0.3ms) SELECT "belongs_to_fields".* FROM "belongs_to_fields" ORDER BY has_one_fields.id ASC LIMIT 10 OFFSET 0
39987
+ SQLite3::SQLException: no such column: has_one_fields.id: SELECT "belongs_to_fields".* FROM "belongs_to_fields" ORDER BY has_one_fields.id ASC LIMIT 10 OFFSET 0
39988
+  (0.1ms) rollback transaction
39989
+  (0.1ms) begin transaction
39990
+ -----------------------------------------------------------------------------
39991
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_many_through_association
39992
+ -----------------------------------------------------------------------------
39993
+ HasManyThroughField Load (0.4ms) SELECT has_many_through_fields.*,
39994
+ COUNT(belongs_to_fields.id)
39995
+ 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
39996
+ HasManyThroughField Load (0.2ms) SELECT has_many_through_fields.*,
39997
+ COUNT(belongs_to_fields.id)
39998
+ 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
39999
+  (0.1ms) rollback transaction
40000
+  (0.1ms) begin transaction
40001
+ ----------------------------------------------------------------
40002
+ ForestLiana::ResourcesGetterTest: test_StringField_sort_by_field
40003
+ ----------------------------------------------------------------
40004
+ StringField Load (0.2ms) SELECT "string_fields".* FROM "string_fields" ORDER BY field DESC LIMIT 10 OFFSET 0
40005
+ StringField Load (0.2ms) SELECT "string_fields".* FROM "string_fields" ORDER BY field DESC
40006
+  (0.1ms) rollback transaction
40007
+  (0.1ms) begin transaction
40008
+ -----------------------------------------------------------------
40009
+ ForestLiana::ResourcesGetterTest: test_StringField_page_2_size_10
40010
+ -----------------------------------------------------------------
40011
+ StringField Load (0.1ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC LIMIT 10 OFFSET 10
40012
+ StringField Load (0.1ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC
40013
+  (0.1ms) rollback transaction
40014
+  (0.0ms) begin transaction
40015
+ -----------------------------------------------------------------
40016
+ ForestLiana::ResourcesGetterTest: test_StringField_page_1_size_15
40017
+ -----------------------------------------------------------------
40018
+ StringField Load (0.1ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC LIMIT 15 OFFSET 0
40019
+ StringField Load (0.1ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC
40020
+  (0.0ms) rollback transaction
40021
+  (0.0ms) begin transaction
40022
+ --------------------------------------------------------------------
40023
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_one_association
40024
+ --------------------------------------------------------------------
40025
+ HasOneField Load (0.1ms) SELECT "has_one_fields".* FROM "has_one_fields" ORDER BY belongs_to_fields.id DESC LIMIT 10 OFFSET 0
40026
+ SQLite3::SQLException: no such column: belongs_to_fields.id: SELECT "has_one_fields".* FROM "has_one_fields" ORDER BY belongs_to_fields.id DESC LIMIT 10 OFFSET 0
40027
+  (0.0ms) rollback transaction
40028
+  (0.0ms) begin transaction
40029
+ ---------------------------------------------------------------------
40030
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_many_association
40031
+ ---------------------------------------------------------------------
40032
+ HasManyField Load (0.2ms) SELECT has_many_fields.*,
40033
+ COUNT(belongs_to_fields.id)
40034
+ 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
40035
+ HasManyField Load (0.1ms) SELECT has_many_fields.*,
40036
+ COUNT(belongs_to_fields.id)
40037
+ 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
40038
+  (0.1ms) rollback transaction
40039
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
40040
+  (0.1ms) begin transaction
40041
+ Fixture Delete (1.6ms) DELETE FROM "belongs_to_fields"
40042
+ Fixture Insert (0.5ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (1, 1, 1)
40043
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (2, 2, 1)
40044
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (3, 3, 1)
40045
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (4, 4, 2)
40046
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (5, 5, 2)
40047
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (6, 6, 2)
40048
+ Fixture Insert (0.2ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (7, 7, 3)
40049
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (8, 8, 3)
40050
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (9, 9, 3)
40051
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (10, 10, 4)
40052
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (11, 11, 4)
40053
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (12, 12, 4)
40054
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (13, 13, 5)
40055
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (14, 14, 5)
40056
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (15, 15, 5)
40057
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (16, 16, 6)
40058
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (17, 17, 6)
40059
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (18, 18, 6)
40060
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (19, 19, 7)
40061
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (20, 20, 7)
40062
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (21, 21, 7)
40063
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (22, 22, 7)
40064
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (23, 23, 8)
40065
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (24, 24, 8)
40066
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (25, 25, 9)
40067
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (26, 26, 9)
40068
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (27, 27, 9)
40069
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (28, 28, 10)
40070
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (29, 29, 10)
40071
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (30, 30, 10)
40072
+ Fixture Delete (0.7ms) DELETE FROM "has_many_fields"
40073
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (1)
40074
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (2)
40075
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (3)
40076
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (4)
40077
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (5, 3)
40078
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (6, 2)
40079
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (7)
40080
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (8, 2)
40081
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (9)
40082
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (10)
40083
+ Fixture Delete (0.4ms) DELETE FROM "has_many_through_fields"
40084
+ Fixture Insert (0.2ms) INSERT INTO "has_many_through_fields" ("id") VALUES (1)
40085
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (2)
40086
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (3)
40087
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (4)
40088
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (5)
40089
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (6)
40090
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (7)
40091
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (8)
40092
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (9)
40093
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (10)
40094
+ Fixture Delete (0.4ms) DELETE FROM "has_one_fields"
40095
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (1)
40096
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (2)
40097
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (3)
40098
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (4)
40099
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (5)
40100
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (6)
40101
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (7)
40102
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (8)
40103
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (9)
40104
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (10)
40105
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (11)
40106
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (12)
40107
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (13)
40108
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (14)
40109
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (15)
40110
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (16)
40111
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (17)
40112
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (18)
40113
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (19)
40114
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (20)
40115
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (21)
40116
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (22)
40117
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (23)
40118
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (24)
40119
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (25)
40120
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (26)
40121
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (27)
40122
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (28)
40123
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (29)
40124
+ Fixture Insert (0.3ms) INSERT INTO "has_one_fields" ("id") VALUES (30)
40125
+ Fixture Delete (0.5ms) DELETE FROM "string_fields"
40126
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (1, 'Test 1')
40127
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (2, 'Test 2')
40128
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (3, 'Test 3')
40129
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (4, 'Test 4')
40130
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (5, 'Test 5')
40131
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (6, 'Test 6')
40132
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (7, 'Test 7')
40133
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (8, 'Test 8')
40134
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (9, 'Test 9')
40135
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (10, 'Test 10')
40136
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (11, 'Test 11')
40137
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (12, 'Test 12')
40138
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (13, 'Test 13')
40139
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (14, 'Test 14')
40140
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (15, 'Test 15')
40141
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (16, 'Test 16')
40142
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (17, 'Test 17')
40143
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (18, 'Test 18')
40144
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (19, 'Test 19')
40145
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (20, 'Test 20')
40146
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (21, 'Test 21')
40147
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (22, 'Test 22')
40148
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (23, 'Test 23')
40149
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (24, 'Test 24')
40150
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (25, 'Test 25')
40151
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (26, 'Test 26')
40152
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (27, 'Test 27')
40153
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (28, 'Test 28')
40154
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (29, 'Test 29')
40155
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (30, 'Test 30')
40156
+  (0.8ms) commit transaction
40157
+  (0.1ms) begin transaction
40158
+ -----------------------------------------------------------------------------
40159
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_many_through_association
40160
+ -----------------------------------------------------------------------------
40161
+ HasManyThroughField Load (0.3ms) SELECT has_many_through_fields.*,
40162
+ COUNT(belongs_to_fields.id)
40163
+ 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
40164
+ 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)
40165
+ BelongsToField Load (0.2ms) SELECT "belongs_to_fields".* FROM "belongs_to_fields" WHERE "belongs_to_fields"."has_many_field_id" IN (6, 8, 5)
40166
+ HasManyThroughField Load (0.2ms) SELECT has_many_through_fields.*,
40167
+ COUNT(belongs_to_fields.id)
40168
+ 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
40169
+ HasManyField Load (0.1ms) 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)
40170
+ BelongsToField Load (0.1ms) SELECT "belongs_to_fields".* FROM "belongs_to_fields" WHERE "belongs_to_fields"."has_many_field_id" IN (6, 8, 5)
40171
+  (0.1ms) rollback transaction
40172
+  (0.1ms) begin transaction
40173
+ ---------------------------------------------------------------------
40174
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_many_association
40175
+ ---------------------------------------------------------------------
40176
+ HasManyField Load (0.2ms) SELECT has_many_fields.*,
40177
+ COUNT(belongs_to_fields.id)
40178
+ 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
40179
+ BelongsToField Load (0.1ms) 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)
40180
+ HasManyThroughField Load (0.1ms) SELECT "has_many_through_fields".* FROM "has_many_through_fields" WHERE "has_many_through_fields"."id" IN (3, 2)
40181
+ HasManyField Load (0.1ms) SELECT has_many_fields.*,
40182
+ COUNT(belongs_to_fields.id)
40183
+ 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
40184
+ BelongsToField Load (0.1ms) 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)
40185
+ HasManyThroughField Load (0.1ms) SELECT "has_many_through_fields".* FROM "has_many_through_fields" WHERE "has_many_through_fields"."id" IN (3, 2)
40186
+  (0.0ms) rollback transaction
40187
+  (0.0ms) begin transaction
40188
+ --------------------------------------------------------------------
40189
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_one_association
40190
+ --------------------------------------------------------------------
40191
+ SQL (0.6ms) 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
40192
+ 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, "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
40193
+  (0.1ms) rollback transaction
40194
+  (0.0ms) begin transaction
40195
+ -----------------------------------------------------------------
40196
+ ForestLiana::ResourcesGetterTest: test_StringField_page_1_size_15
40197
+ -----------------------------------------------------------------
40198
+ StringField Load (0.1ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC LIMIT 15 OFFSET 0
40199
+ StringField Load (0.3ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC
40200
+  (0.1ms) rollback transaction
40201
+  (0.1ms) begin transaction
40202
+ -----------------------------------------------------------------
40203
+ ForestLiana::ResourcesGetterTest: test_StringField_page_2_size_10
40204
+ -----------------------------------------------------------------
40205
+ StringField Load (0.1ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC LIMIT 10 OFFSET 10
40206
+ StringField Load (0.1ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC
40207
+  (0.1ms) rollback transaction
40208
+  (0.0ms) begin transaction
40209
+ ----------------------------------------------------------------
40210
+ ForestLiana::ResourcesGetterTest: test_StringField_sort_by_field
40211
+ ----------------------------------------------------------------
40212
+ StringField Load (0.2ms) SELECT "string_fields".* FROM "string_fields" ORDER BY field DESC LIMIT 10 OFFSET 0
40213
+ StringField Load (0.1ms) SELECT "string_fields".* FROM "string_fields" ORDER BY field DESC
40214
+  (0.1ms) rollback transaction
40215
+  (0.1ms) begin transaction
40216
+ -----------------------------------------------------------------------
40217
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_belongs_to_association
40218
+ -----------------------------------------------------------------------
40219
+ 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
40220
+ SQL (0.1ms) 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
40221
+  (0.0ms) rollback transaction
40222
+  (0.1ms) begin transaction
40223
+ ---------------------------
40224
+ ForestLianaTest: test_truth
40225
+ ---------------------------
40226
+  (0.1ms) rollback transaction
40227
+  (0.1ms) begin transaction
40228
+ ------------------------------------------------------------------------------------
40229
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
40230
+ ------------------------------------------------------------------------------------
40231
+  (0.1ms) rollback transaction
40232
+  (0.2ms) begin transaction
40233
+ -------------------------------------------------------------------------
40234
+ ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
40235
+ -------------------------------------------------------------------------
40236
+  (0.1ms) rollback transaction
40237
+  (0.0ms) begin transaction
40238
+ ---------------------------------------------------------------------
40239
+ ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
40240
+ ---------------------------------------------------------------------
40241
+  (0.0ms) rollback transaction
40242
+  (0.1ms) begin transaction
40243
+ ---------------------------------------------------------------------------
40244
+ ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
40245
+ ---------------------------------------------------------------------------
40246
+  (0.1ms) rollback transaction
40247
+  (0.0ms) begin transaction
40248
+ ------------------------------------------------------------------------
40249
+ ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
40250
+ ------------------------------------------------------------------------
40251
+  (0.1ms) rollback transaction
40252
+  (0.2ms) begin transaction
40253
+ --------------------------------------------------------------------------
40254
+ ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
40255
+ --------------------------------------------------------------------------
40256
+  (0.1ms) rollback transaction
40257
+  (0.1ms) begin transaction
40258
+ ----------------------------------------------------------------------------------
40259
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
40260
+ ----------------------------------------------------------------------------------
40261
+  (0.1ms) rollback transaction
40262
+  (0.1ms) begin transaction
40263
+ --------------------------------------------------------------------------
40264
+ ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
40265
+ --------------------------------------------------------------------------
40266
+  (0.1ms) rollback transaction
40267
+  (0.0ms) begin transaction
40268
+ --------------------------------------------------------
40269
+ ForestLiana::SchemaAdapterTest: test_hasOne_relationship
40270
+ --------------------------------------------------------
40271
+  (0.0ms) rollback transaction
40272
+  (0.0ms) begin transaction
40273
+ -----------------------------------------------------------
40274
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
40275
+ -----------------------------------------------------------
40276
+  (0.0ms) rollback transaction
40277
+  (0.0ms) begin transaction
40278
+ -------------------------------------------------------------------------
40279
+ ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
40280
+ -------------------------------------------------------------------------
40281
+  (0.0ms) rollback transaction
40282
+  (0.1ms) begin transaction
40283
+ ---------------------------------------------------------
40284
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationship
40285
+ ---------------------------------------------------------
40286
+  (0.0ms) rollback transaction
40287
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
40288
+  (0.1ms) begin transaction
40289
+ Fixture Delete (1.7ms) DELETE FROM "belongs_to_fields"
40290
+ Fixture Insert (0.5ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (1, 1, 1)
40291
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (2, 2, 1)
40292
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (3, 3, 1)
40293
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (4, 4, 2)
40294
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (5, 5, 2)
40295
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (6, 6, 2)
40296
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (7, 7, 3)
40297
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (8, 8, 3)
40298
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (9, 9, 3)
40299
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (10, 10, 4)
40300
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (11, 11, 4)
40301
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (12, 12, 4)
40302
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (13, 13, 5)
40303
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (14, 14, 5)
40304
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (15, 15, 5)
40305
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (16, 16, 6)
40306
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (17, 17, 6)
40307
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (18, 18, 6)
40308
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (19, 19, 7)
40309
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (20, 20, 7)
40310
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (21, 21, 7)
40311
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (22, 22, 7)
40312
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (23, 23, 8)
40313
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (24, 24, 8)
40314
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (25, 25, 9)
40315
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (26, 26, 9)
40316
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (27, 27, 9)
40317
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (28, 28, 10)
40318
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (29, 29, 10)
40319
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (30, 30, 10)
40320
+ Fixture Delete (0.8ms) DELETE FROM "has_many_fields"
40321
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (1)
40322
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (2)
40323
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (3)
40324
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (4)
40325
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (5, 3)
40326
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (6, 2)
40327
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (7)
40328
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (8, 2)
40329
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (9)
40330
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (10)
40331
+ Fixture Delete (0.4ms) DELETE FROM "has_many_through_fields"
40332
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (1)
40333
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (2)
40334
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (3)
40335
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (4)
40336
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (5)
40337
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (6)
40338
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (7)
40339
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (8)
40340
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (9)
40341
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (10)
40342
+ Fixture Delete (0.4ms) DELETE FROM "has_one_fields"
40343
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (1)
40344
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (2)
40345
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (3)
40346
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (4)
40347
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (5)
40348
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (6)
40349
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (7)
40350
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (8)
40351
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (9)
40352
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (10)
40353
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (11)
40354
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (12)
40355
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (13)
40356
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (14)
40357
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (15)
40358
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (16)
40359
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (17)
40360
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (18)
40361
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (19)
40362
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (20)
40363
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (21)
40364
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (22)
40365
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (23)
40366
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (24)
40367
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (25)
40368
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (26)
40369
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (27)
40370
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (28)
40371
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (29)
40372
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (30)
40373
+ Fixture Delete (0.6ms) DELETE FROM "string_fields"
40374
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (1, 'Test 1')
40375
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (2, 'Test 2')
40376
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (3, 'Test 3')
40377
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (4, 'Test 4')
40378
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (5, 'Test 5')
40379
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (6, 'Test 6')
40380
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (7, 'Test 7')
40381
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (8, 'Test 8')
40382
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (9, 'Test 9')
40383
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (10, 'Test 10')
40384
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (11, 'Test 11')
40385
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (12, 'Test 12')
40386
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (13, 'Test 13')
40387
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (14, 'Test 14')
40388
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (15, 'Test 15')
40389
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (16, 'Test 16')
40390
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (17, 'Test 17')
40391
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (18, 'Test 18')
40392
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (19, 'Test 19')
40393
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (20, 'Test 20')
40394
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (21, 'Test 21')
40395
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (22, 'Test 22')
40396
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (23, 'Test 23')
40397
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (24, 'Test 24')
40398
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (25, 'Test 25')
40399
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (26, 'Test 26')
40400
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (27, 'Test 27')
40401
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (28, 'Test 28')
40402
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (29, 'Test 29')
40403
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (30, 'Test 30')
40404
+  (0.8ms) commit transaction
40405
+  (0.0ms) begin transaction
40406
+ --------------------------------------------------------------------------
40407
+ ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
40408
+ --------------------------------------------------------------------------
40409
+  (0.1ms) rollback transaction
40410
+  (0.1ms) begin transaction
40411
+ --------------------------------------------------------------------------
40412
+ ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
40413
+ --------------------------------------------------------------------------
40414
+  (0.1ms) rollback transaction
40415
+  (0.1ms) begin transaction
40416
+ ---------------------------------------------------------------------
40417
+ ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
40418
+ ---------------------------------------------------------------------
40419
+  (0.1ms) rollback transaction
40420
+  (0.1ms) begin transaction
40421
+ ------------------------------------------------------------------------
40422
+ ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
40423
+ ------------------------------------------------------------------------
40424
+  (0.1ms) rollback transaction
40425
+  (0.1ms) begin transaction
40426
+ ---------------------------------------------------------------------------
40427
+ ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
40428
+ ---------------------------------------------------------------------------
40429
+  (0.1ms) rollback transaction
40430
+  (0.1ms) begin transaction
40431
+ -------------------------------------------------------------------------
40432
+ ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
40433
+ -------------------------------------------------------------------------
40434
+  (0.0ms) rollback transaction
40435
+  (0.1ms) begin transaction
40436
+ ---------------------------------------------------------
40437
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationship
40438
+ ---------------------------------------------------------
40439
+  (0.1ms) rollback transaction
40440
+  (0.1ms) begin transaction
40441
+ ----------------------------------------------------------------------------------
40442
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
40443
+ ----------------------------------------------------------------------------------
40444
+  (0.1ms) rollback transaction
40445
+  (0.1ms) begin transaction
40446
+ -------------------------------------------------------------------------
40447
+ ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
40448
+ -------------------------------------------------------------------------
40449
+  (0.0ms) rollback transaction
40450
+  (0.0ms) begin transaction
40451
+ ------------------------------------------------------------------------------------
40452
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
40453
+ ------------------------------------------------------------------------------------
40454
+  (0.1ms) rollback transaction
40455
+  (0.0ms) begin transaction
40456
+ -----------------------------------------------------------
40457
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
40458
+ -----------------------------------------------------------
40459
+  (0.1ms) rollback transaction
40460
+  (0.1ms) begin transaction
40461
+ --------------------------------------------------------
40462
+ ForestLiana::SchemaAdapterTest: test_hasOne_relationship
40463
+ --------------------------------------------------------
40464
+  (0.0ms) rollback transaction
40465
+  (0.0ms) begin transaction
40466
+ --------------------------------------------------------------------
40467
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_one_association
40468
+ --------------------------------------------------------------------
40469
+ 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
40470
+ 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
40471
+  (0.1ms) rollback transaction
40472
+  (0.0ms) begin transaction
40473
+ -----------------------------------------------------------------
40474
+ ForestLiana::ResourcesGetterTest: test_StringField_page_2_size_10
40475
+ -----------------------------------------------------------------
40476
+ StringField Load (0.2ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC LIMIT 10 OFFSET 10
40477
+ StringField Load (0.1ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC
40478
+  (0.0ms) rollback transaction
40479
+  (0.0ms) begin transaction
40480
+ -----------------------------------------------------------------------------
40481
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_many_through_association
40482
+ -----------------------------------------------------------------------------
40483
+ HasManyThroughField Load (0.3ms) SELECT has_many_through_fields.*,
40484
+ COUNT(belongs_to_fields.id)
40485
+ 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
40486
+ 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)
40487
+ BelongsToField Load (0.2ms) SELECT "belongs_to_fields".* FROM "belongs_to_fields" WHERE "belongs_to_fields"."has_many_field_id" IN (6, 8, 5)
40488
+ HasManyThroughField Load (0.1ms) SELECT has_many_through_fields.*,
40489
+ COUNT(belongs_to_fields.id)
40490
+ 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
40491
+ HasManyField Load (0.1ms) 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)
40492
+ BelongsToField Load (0.1ms) SELECT "belongs_to_fields".* FROM "belongs_to_fields" WHERE "belongs_to_fields"."has_many_field_id" IN (6, 8, 5)
40493
+  (0.1ms) rollback transaction
40494
+  (0.0ms) begin transaction
40495
+ -----------------------------------------------------------------
40496
+ ForestLiana::ResourcesGetterTest: test_StringField_page_1_size_15
40497
+ -----------------------------------------------------------------
40498
+ StringField Load (0.1ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC LIMIT 15 OFFSET 0
40499
+ StringField Load (0.1ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC
40500
+  (0.1ms) rollback transaction
40501
+  (0.1ms) begin transaction
40502
+ ---------------------------------------------------------------------
40503
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_many_association
40504
+ ---------------------------------------------------------------------
40505
+ HasManyField Load (0.3ms) SELECT has_many_fields.*,
40506
+ COUNT(belongs_to_fields.id)
40507
+ 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
40508
+ 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)
40509
+ HasManyField Load (0.2ms) SELECT has_many_fields.*,
40510
+ COUNT(belongs_to_fields.id)
40511
+ 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
40512
+ 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)
40513
+  (0.1ms) rollback transaction
40514
+  (0.0ms) begin transaction
40515
+ ----------------------------------------------------------------
40516
+ ForestLiana::ResourcesGetterTest: test_StringField_sort_by_field
40517
+ ----------------------------------------------------------------
40518
+ StringField Load (0.2ms) SELECT "string_fields".* FROM "string_fields" ORDER BY field DESC LIMIT 10 OFFSET 0
40519
+ StringField Load (0.1ms) SELECT "string_fields".* FROM "string_fields" ORDER BY field DESC
40520
+  (0.0ms) rollback transaction
40521
+  (0.0ms) begin transaction
40522
+ -----------------------------------------------------------------------
40523
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_belongs_to_association
40524
+ -----------------------------------------------------------------------
40525
+ 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
40526
+ 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
40527
+  (0.0ms) rollback transaction
40528
+  (0.1ms) begin transaction
40529
+ ---------------------------
40530
+ ForestLianaTest: test_truth
39317
40531
  ---------------------------
39318
40532
   (0.0ms) rollback transaction