poly_belongs_to 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/poly_belongs_to.rb +16 -3
- data/lib/poly_belongs_to/core.rb +35 -0
- data/lib/poly_belongs_to/dup.rb +12 -0
- data/lib/poly_belongs_to/faked_collection.rb +38 -1
- data/lib/poly_belongs_to/pbt.rb +45 -1
- data/lib/poly_belongs_to/singleton_set.rb +21 -0
- data/lib/poly_belongs_to/version.rb +2 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +2214 -0
- metadata +2 -2
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -320244,3 +320244,2217 @@ PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items
|
|
320244
320244
|
---------------------------------------------------------------------
|
320245
320245
|
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
320246
320246
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
320247
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
320248
|
+
[1m[35mSQL (3.5ms)[0m INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00]]
|
320249
|
+
[1m[36m (12.8ms)[0m [1mcommit transaction[0m
|
320250
|
+
[1m[35m (0.1ms)[0m begin transaction
|
320251
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["alpha_id", 136], ["created_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00]]
|
320252
|
+
[1m[35m (17.1ms)[0m commit transaction
|
320253
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
320254
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 136], ["created_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00]]
|
320255
|
+
[1m[36m (17.1ms)[0m [1mcommit transaction[0m
|
320256
|
+
[1m[35m (0.1ms)[0m begin transaction
|
320257
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["capa_id", 136], ["created_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00]]
|
320258
|
+
[1m[35m (23.7ms)[0m commit transaction
|
320259
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
320260
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 136 [["delta_id", 136], ["updated_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00]]
|
320261
|
+
[1m[36m (18.2ms)[0m [1mcommit transaction[0m
|
320262
|
+
[1m[35m (0.1ms)[0m begin transaction
|
320263
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "squishies"[0m
|
320264
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:52:25', '2015-03-30 01:52:25', 576421514, 'Address', 761411935)
|
320265
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:52:25', '2015-03-30 01:52:25', 458139734, 'GeoLocation', 343404421)[0m
|
320266
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:52:25', '2015-03-30 01:52:25', 396855775, 'Address', 1057142427)
|
320267
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:52:25', '2015-03-30 01:52:25', 783441669, 'GeoLocation', 102195269)[0m
|
320268
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:52:25', '2015-03-30 01:52:25', 106545386, 'Address', 633598004)
|
320269
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:52:25', '2015-03-30 01:52:25', 1061951038, 'GeoLocation', 483796712)[0m
|
320270
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "addresses"
|
320271
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a649edbc68ae50a3083e41a41f89faea', '2015-03-30 01:52:25', '2015-03-30 01:52:25', 761411935)[0m
|
320272
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9dd93394a285c34ea9a6c0676f463b48', '2015-03-30 01:52:25', '2015-03-30 01:52:25', 1057142427)
|
320273
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '02d01aac3c41a40796fa786a56a5fe8a', '2015-03-30 01:52:25', '2015-03-30 01:52:25', 633598004)[0m
|
320274
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "photos"
|
320275
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bceef3388df42961ff199dd68ab0f8cf', '2015-03-30 01:52:25', '2015-03-30 01:52:25', 775134066)[0m
|
320276
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7c89c472b2c049469da33a549df7950b', '2015-03-30 01:52:25', '2015-03-30 01:52:25', 971855462)
|
320277
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '93549359c797d7081943a27b6759b83e', '2015-03-30 01:52:25', '2015-03-30 01:52:25', 1032612456)[0m
|
320278
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "profiles"
|
320279
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '13f60774460fb36bdf1545f3357d9057', '2015-03-30 01:52:25', '2015-03-30 01:52:25', 261299535)[0m
|
320280
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '1dac43cd1c0715b620b246e0dbd9ab06', '2015-03-30 01:52:25', '2015-03-30 01:52:25', 478996145)
|
320281
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '425e977841d7d40915ac77f130e3edd8', '2015-03-30 01:52:25', '2015-03-30 01:52:25', 966629572)[0m
|
320282
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "tires"
|
320283
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:52:25', '2015-03-30 01:52:25', 438300604, 336964236, 849808553)[0m
|
320284
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:52:25', '2015-03-30 01:52:25', 51822084, 336964236, 849808553)
|
320285
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:52:25', '2015-03-30 01:52:25', 873565849, 336964236, 849808553)[0m
|
320286
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:52:25', '2015-03-30 01:52:25', 712317748, 336964236, 849808553)
|
320287
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "geo_locations"[0m
|
320288
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'a64a5d2bcc7c6b066f00f911380bd546', '2015-03-30 01:52:25', '2015-03-30 01:52:25', 343404421)
|
320289
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'a5b5d82f58d8ef2be168943738a4378a', '2015-03-30 01:52:25', '2015-03-30 01:52:25', 102195269)[0m
|
320290
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '892798882d444e59673a7ead015ef103', '2015-03-30 01:52:25', '2015-03-30 01:52:25', 483796712)
|
320291
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "phones"[0m
|
320292
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5fd0322f6c06edcdaaf427eb88441448', '2015-03-30 01:52:25', '2015-03-30 01:52:25', 1053526200)
|
320293
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2c5ae30546fb75bf8115542245d57c4e', '2015-03-30 01:52:25', '2015-03-30 01:52:25', 689259936)[0m
|
320294
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'efc76ae290c7a5d942c0fdb57d9e8936', '2015-03-30 01:52:25', '2015-03-30 01:52:25', 762608046)
|
320295
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
320296
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:52:25', '2015-03-30 01:52:25', 902541635)
|
320297
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:52:25', '2015-03-30 01:52:25', 380377255)[0m
|
320298
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:52:25', '2015-03-30 01:52:25', 619379998)
|
320299
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "cars"[0m
|
320300
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 01:52:25', '2015-03-30 01:52:25', 421646738, 336964236)
|
320301
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "tags"[0m
|
320302
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c7b351a65f5547545af4352ea0c18846', '2015-03-30 01:52:25', '2015-03-30 01:52:25', 884173432)
|
320303
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd37d14b91e74496e937f49b85e944d47', '2015-03-30 01:52:25', '2015-03-30 01:52:25', 1035759634)[0m
|
320304
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'cfb60f79c71547c36d403dd3e8e64e3c', '2015-03-30 01:52:25', '2015-03-30 01:52:25', 471587404)
|
320305
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "ssns"[0m
|
320306
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6ab91c3271e6272af99c0ad75dfb41cd', '2015-03-30 01:52:25', '2015-03-30 01:52:25', 819246218)
|
320307
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0a9c4c7ebbe7b40a3d53e9debc622fa5', '2015-03-30 01:52:25', '2015-03-30 01:52:25', 970698464)[0m
|
320308
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'df1dcfdb0d6f35e1badcef9fcf9a8618', '2015-03-30 01:52:25', '2015-03-30 01:52:25', 410780858)
|
320309
|
+
[1m[36m (14.7ms)[0m [1mcommit transaction[0m
|
320310
|
+
[1m[35m (0.1ms)[0m begin transaction
|
320311
|
+
------------------------------------------
|
320312
|
+
PolyBelongsTo::Core: test_0001_is a module
|
320313
|
+
------------------------------------------
|
320314
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
320315
|
+
[1m[35m (0.1ms)[0m begin transaction
|
320316
|
+
-------------------------------------------------------------
|
320317
|
+
PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic
|
320318
|
+
-------------------------------------------------------------
|
320319
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
320320
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
320321
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
320322
|
+
------------------------------------------------------------
|
320323
|
+
PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic
|
320324
|
+
------------------------------------------------------------
|
320325
|
+
[1m[35mTag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]
|
320326
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
320327
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320328
|
+
----------------------------------------------------------
|
320329
|
+
PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic
|
320330
|
+
----------------------------------------------------------
|
320331
|
+
[1m[36mPhone Load (0.3ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 1053526200]]
|
320332
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
320333
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
320334
|
+
----------------------------------------------------------------
|
320335
|
+
PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil
|
320336
|
+
----------------------------------------------------------------
|
320337
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
320338
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
320339
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320340
|
+
-----------------------------------------------------------------
|
320341
|
+
PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user
|
320342
|
+
-----------------------------------------------------------------
|
320343
|
+
[1m[36mTag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 884173432]]
|
320344
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
320345
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
320346
|
+
------------------------------------------------------------------------
|
320347
|
+
PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable
|
320348
|
+
------------------------------------------------------------------------
|
320349
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]
|
320350
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
320351
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320352
|
+
-----------------------------------------------------
|
320353
|
+
PolyBelongsTo::Core: test_0008_#pbts multiple parents
|
320354
|
+
-----------------------------------------------------
|
320355
|
+
[1m[36mTire Load (0.1ms)[0m [1mSELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1[0m [["id", 438300604]]
|
320356
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
320357
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
320358
|
+
-------------------------------------------------------------------------
|
320359
|
+
PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user
|
320360
|
+
-------------------------------------------------------------------------
|
320361
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
320362
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
320363
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320364
|
+
-----------------------------------------------------------------------
|
320365
|
+
PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag
|
320366
|
+
-----------------------------------------------------------------------
|
320367
|
+
[1m[36mTag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 884173432]]
|
320368
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
320369
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
320370
|
+
---------------------------------------------------------------------------------------
|
320371
|
+
PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes
|
320372
|
+
---------------------------------------------------------------------------------------
|
320373
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]
|
320374
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
320375
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320376
|
+
--------------------------------------------------------------------------------------
|
320377
|
+
PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone
|
320378
|
+
--------------------------------------------------------------------------------------
|
320379
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 1053526200]]
|
320380
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
320381
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
320382
|
+
---------------------------------------------------------------------------------
|
320383
|
+
PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil
|
320384
|
+
---------------------------------------------------------------------------------
|
320385
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
320386
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
320387
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320388
|
+
------------------------------------------------------------------------------------
|
320389
|
+
PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id
|
320390
|
+
------------------------------------------------------------------------------------
|
320391
|
+
[1m[36mTag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 884173432]]
|
320392
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
320393
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
320394
|
+
--------------------------------------------------------------------------------------------
|
320395
|
+
PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id
|
320396
|
+
--------------------------------------------------------------------------------------------
|
320397
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]
|
320398
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
320399
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320400
|
+
-------------------------------------------------------------------------------------
|
320401
|
+
PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil
|
320402
|
+
-------------------------------------------------------------------------------------
|
320403
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
320404
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
320405
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
320406
|
+
------------------------------------------------------------------------------------
|
320407
|
+
PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil
|
320408
|
+
------------------------------------------------------------------------------------
|
320409
|
+
[1m[35mTag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]
|
320410
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
320411
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320412
|
+
--------------------------------------------------------------------------------------------------
|
320413
|
+
PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type
|
320414
|
+
--------------------------------------------------------------------------------------------------
|
320415
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 1053526200]]
|
320416
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
320417
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
320418
|
+
----------------------------------------------------------------
|
320419
|
+
PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil
|
320420
|
+
----------------------------------------------------------------
|
320421
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
320422
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
320423
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320424
|
+
---------------------------------------------------------------------
|
320425
|
+
PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id
|
320426
|
+
---------------------------------------------------------------------
|
320427
|
+
[1m[36mTag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 884173432]]
|
320428
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
320429
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
320430
|
+
-------------------------------------------------------------------------------
|
320431
|
+
PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id
|
320432
|
+
-------------------------------------------------------------------------------
|
320433
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]
|
320434
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
320435
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320436
|
+
--------------------------------------------------------------------
|
320437
|
+
PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil
|
320438
|
+
--------------------------------------------------------------------
|
320439
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
320440
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
320441
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
320442
|
+
-------------------------------------------------------------------
|
320443
|
+
PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil
|
320444
|
+
-------------------------------------------------------------------
|
320445
|
+
[1m[35mTag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]
|
320446
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
320447
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320448
|
+
---------------------------------------------------------------------------
|
320449
|
+
PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile'
|
320450
|
+
---------------------------------------------------------------------------
|
320451
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 1053526200]]
|
320452
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
320453
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
320454
|
+
------------------------------------------------------------------
|
320455
|
+
PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil
|
320456
|
+
------------------------------------------------------------------
|
320457
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
320458
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
320459
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320460
|
+
---------------------------------------------------------------------------
|
320461
|
+
PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance
|
320462
|
+
---------------------------------------------------------------------------
|
320463
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
320464
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
320465
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
320466
|
+
[1m[35m (0.1ms)[0m begin transaction
|
320467
|
+
-----------------------------------------------------------------------
|
320468
|
+
PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile
|
320469
|
+
-----------------------------------------------------------------------
|
320470
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
320471
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
320472
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00]]
|
320473
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00]]
|
320474
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
320475
|
+
[1m[35mProfile Load (0.1ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]
|
320476
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
320477
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320478
|
+
----------------------------------------------------------------------
|
320479
|
+
PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user
|
320480
|
+
----------------------------------------------------------------------
|
320481
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
320482
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
320483
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00]]
|
320484
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
320485
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
320486
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
320487
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
320488
|
+
----------------------------------------------------------------------------------------------
|
320489
|
+
PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship
|
320490
|
+
----------------------------------------------------------------------------------------------
|
320491
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
320492
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00]]
|
320493
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
320494
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
320495
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320496
|
+
-------------------------------------------------------------------------------------------------------------------------
|
320497
|
+
PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first
|
320498
|
+
-------------------------------------------------------------------------------------------------------------------------
|
320499
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
320500
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00]]
|
320501
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
320502
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
320503
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["alpha_id", 137], ["created_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00]]
|
320504
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
320505
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
320506
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 137], ["created_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00]]
|
320507
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
320508
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
320509
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["capa_id", 137], ["created_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00]]
|
320510
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
320511
|
+
[1m[36mCapa Load (0.1ms)[0m [1mSELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1[0m [["id", 137]]
|
320512
|
+
[1m[35mCapa Load (0.0ms)[0m SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 137]]
|
320513
|
+
[1m[36mCapa Load (0.0ms)[0m [1mSELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1[0m [["id", 137]]
|
320514
|
+
[1m[35mCapa Load (0.0ms)[0m SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 137]]
|
320515
|
+
[1m[36mBeta Load (0.1ms)[0m [1mSELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1[0m [["id", 137]]
|
320516
|
+
[1m[35mBeta Load (0.0ms)[0m SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 137]]
|
320517
|
+
[1m[36mBeta Load (0.0ms)[0m [1mSELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1[0m [["id", 137]]
|
320518
|
+
[1m[35mAlpha Load (0.1ms)[0m SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 137]]
|
320519
|
+
[1m[36mAlpha Load (0.0ms)[0m [1mSELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1[0m [["id", 137]]
|
320520
|
+
[1m[35mAlpha Load (0.0ms)[0m SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 137]]
|
320521
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
320522
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320523
|
+
------------------------------------------------------------------------------------------
|
320524
|
+
PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat
|
320525
|
+
------------------------------------------------------------------------------------------
|
320526
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
320527
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00]]
|
320528
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
320529
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
320530
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["alpha_id", 137], ["created_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00]]
|
320531
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
320532
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
320533
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 137], ["created_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00]]
|
320534
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
320535
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
320536
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["capa_id", 137], ["created_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00]]
|
320537
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
320538
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
320539
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 137 [["delta_id", 137], ["updated_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00]]
|
320540
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
320541
|
+
[1m[35mCapa Load (0.0ms)[0m SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 137]]
|
320542
|
+
[1m[36mCapa Load (0.0ms)[0m [1mSELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1[0m [["id", 137]]
|
320543
|
+
[1m[35mCapa Load (0.0ms)[0m SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 137]]
|
320544
|
+
[1m[36mCapa Load (0.0ms)[0m [1mSELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1[0m [["id", 137]]
|
320545
|
+
[1m[35mBeta Load (0.0ms)[0m SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 137]]
|
320546
|
+
[1m[36mBeta Load (0.0ms)[0m [1mSELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1[0m [["id", 137]]
|
320547
|
+
[1m[35mBeta Load (0.0ms)[0m SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 137]]
|
320548
|
+
[1m[36mAlpha Load (0.0ms)[0m [1mSELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1[0m [["id", 137]]
|
320549
|
+
[1m[35mAlpha Load (0.0ms)[0m SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 137]]
|
320550
|
+
[1m[36mAlpha Load (0.0ms)[0m [1mSELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1[0m [["id", 137]]
|
320551
|
+
[1m[35mDelta Load (0.1ms)[0m SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 137]]
|
320552
|
+
[1m[36mDelta Load (0.0ms)[0m [1mSELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1[0m [["id", 137]]
|
320553
|
+
[1m[35mDelta Load (0.0ms)[0m SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 137]]
|
320554
|
+
[1m[36mDelta Load (0.0ms)[0m [1mSELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1[0m [["id", 137]]
|
320555
|
+
[1m[35mDelta Load (0.0ms)[0m SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 137]]
|
320556
|
+
[1m[36mCapa Load (0.0ms)[0m [1mSELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1[0m [["id", 137]]
|
320557
|
+
[1m[35mCapa Load (0.0ms)[0m SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 137]]
|
320558
|
+
[1m[36mCapa Load (0.0ms)[0m [1mSELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1[0m [["id", 137]]
|
320559
|
+
[1m[35mBeta Load (0.0ms)[0m SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 137]]
|
320560
|
+
[1m[36mBeta Load (0.1ms)[0m [1mSELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1[0m [["id", 137]]
|
320561
|
+
[1m[35mBeta Load (0.0ms)[0m SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 137]]
|
320562
|
+
[1m[36mAlpha Load (0.0ms)[0m [1mSELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1[0m [["id", 137]]
|
320563
|
+
[1m[35mAlpha Load (0.0ms)[0m SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 137]]
|
320564
|
+
[1m[36mAlpha Load (0.0ms)[0m [1mSELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1[0m [["id", 137]]
|
320565
|
+
[1m[35mAlpha Load (0.0ms)[0m SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 137]]
|
320566
|
+
[1m[36mAlpha Load (0.0ms)[0m [1mSELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1[0m [["id", 137]]
|
320567
|
+
[1m[35mDelta Load (0.0ms)[0m SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 137]]
|
320568
|
+
[1m[36mDelta Load (0.0ms)[0m [1mSELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1[0m [["id", 137]]
|
320569
|
+
[1m[35mDelta Load (0.0ms)[0m SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 137]]
|
320570
|
+
[1m[36mCapa Load (0.0ms)[0m [1mSELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1[0m [["id", 137]]
|
320571
|
+
[1m[35mCapa Load (0.0ms)[0m SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 137]]
|
320572
|
+
[1m[36mCapa Load (0.0ms)[0m [1mSELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1[0m [["id", 137]]
|
320573
|
+
[1m[35mBeta Load (0.0ms)[0m SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 137]]
|
320574
|
+
[1m[36mBeta Load (0.0ms)[0m [1mSELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1[0m [["id", 137]]
|
320575
|
+
[1m[35mBeta Load (0.0ms)[0m SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 137]]
|
320576
|
+
[1m[36mBeta Load (0.0ms)[0m [1mSELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1[0m [["id", 137]]
|
320577
|
+
[1m[35mBeta Load (0.0ms)[0m SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 137]]
|
320578
|
+
[1m[36mAlpha Load (0.0ms)[0m [1mSELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1[0m [["id", 137]]
|
320579
|
+
[1m[35mAlpha Load (0.0ms)[0m SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 137]]
|
320580
|
+
[1m[36mAlpha Load (0.0ms)[0m [1mSELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1[0m [["id", 137]]
|
320581
|
+
[1m[35mDelta Load (0.0ms)[0m SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 137]]
|
320582
|
+
[1m[36mDelta Load (0.0ms)[0m [1mSELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1[0m [["id", 137]]
|
320583
|
+
[1m[35mDelta Load (0.0ms)[0m SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 137]]
|
320584
|
+
[1m[36mCapa Load (0.0ms)[0m [1mSELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1[0m [["id", 137]]
|
320585
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
320586
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
320587
|
+
---------------------------------------------------------------------
|
320588
|
+
PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents
|
320589
|
+
---------------------------------------------------------------------
|
320590
|
+
[1m[35mCar Load (0.2ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]
|
320591
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
320592
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00]]
|
320593
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?)[0m [["created_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00], ["user_id", 1]]
|
320594
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:52:25 UTC +00:00], ["user_id", 1]]
|
320595
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
320596
|
+
[1m[35mTire Load (0.2ms)[0m SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]]
|
320597
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
320598
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]
|
320599
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
320600
|
+
[1m[35mSsn Load (0.1ms)[0m SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]]
|
320601
|
+
[1m[36mTag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ?[0m [["user_id", 1]]
|
320602
|
+
[1m[35mContact Load (0.1ms)[0m SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]]
|
320603
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ?[0m [["profileable_id", 1], ["profileable_type", "User"]]
|
320604
|
+
[1m[35mTire Load (0.1ms)[0m SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]]
|
320605
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "tires" WHERE "tires"."id" = ?[0m [["id", 873565850]]
|
320606
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]]
|
320607
|
+
[1m[36mTire Load (0.1ms)[0m [1mSELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ?[0m [["user_id", 1]]
|
320608
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
|
320609
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
320610
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
320611
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
320612
|
+
----------------------------------------------------------------------
|
320613
|
+
PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic
|
320614
|
+
----------------------------------------------------------------------
|
320615
|
+
[1m[35mAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]]
|
320616
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1[0m [["id", 261299535]]
|
320617
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]
|
320618
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
320619
|
+
[1m[35m (0.1ms)[0m begin transaction
|
320620
|
+
-------------------------------------------------------
|
320621
|
+
PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build
|
320622
|
+
-------------------------------------------------------
|
320623
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
320624
|
+
[1m[35m (0.1ms)[0m begin transaction
|
320625
|
+
------------------------------------------------------------
|
320626
|
+
PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build
|
320627
|
+
------------------------------------------------------------
|
320628
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
320629
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320630
|
+
------------------------------------------------------------------------------
|
320631
|
+
PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes
|
320632
|
+
------------------------------------------------------------------------------
|
320633
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
320634
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]
|
320635
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
320636
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320637
|
+
--------------------------------------------------------------------------------------
|
320638
|
+
PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes
|
320639
|
+
--------------------------------------------------------------------------------------
|
320640
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
320641
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]
|
320642
|
+
[1m[36mPhoto Load (0.2ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 261299535], ["photoable_type", "Profile"]]
|
320643
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]]
|
320644
|
+
[1m[36mSquishy Load (0.1ms)[0m [1mSELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1[0m [["squishable_id", 1053526200], ["squishable_type", "Phone"]]
|
320645
|
+
[1m[35mAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]]
|
320646
|
+
[1m[36mGeoLocation Load (0.1ms)[0m [1mSELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1[0m [["address_id", 761411935]]
|
320647
|
+
[1m[35mSquishy Load (0.2ms)[0m SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]]
|
320648
|
+
[1m[36mSquishy Load (0.1ms)[0m [1mSELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ?[0m [["squishable_id", 761411935], ["squishable_type", "Address"]]
|
320649
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
320650
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
320651
|
+
-------------------------------------------------------------------------------------------------------
|
320652
|
+
PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle
|
320653
|
+
-------------------------------------------------------------------------------------------------------
|
320654
|
+
[1m[35mDelta Load (0.1ms)[0m SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 136]]
|
320655
|
+
[1m[36mAlpha Load (0.0ms)[0m [1mSELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1[0m [["id", 136]]
|
320656
|
+
[1m[35mBeta Load (0.0ms)[0m SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 136]]
|
320657
|
+
[1m[36mCapa Load (0.0ms)[0m [1mSELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1[0m [["id", 136]]
|
320658
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
320659
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
320660
|
+
----------------------------------------------------------------------------------------------------------------------------------------
|
320661
|
+
PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference
|
320662
|
+
----------------------------------------------------------------------------------------------------------------------------------------
|
320663
|
+
[1m[35mCapa Load (0.2ms)[0m SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 136]]
|
320664
|
+
[1m[36mDelta Load (0.1ms)[0m [1mSELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ?[0m [["capa_id", 136]]
|
320665
|
+
[1m[35mAlpha Load (0.1ms)[0m SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 136]]
|
320666
|
+
[1m[36mBeta Load (0.1ms)[0m [1mSELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ?[0m [["alpha_id", 136]]
|
320667
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
320668
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
320669
|
+
------------------------------------------------------------------------
|
320670
|
+
PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly
|
320671
|
+
------------------------------------------------------------------------
|
320672
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
320673
|
+
[1m[36mProfile Load (0.2ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
320674
|
+
[1m[35mPhoto Load (0.1ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
320675
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
320676
|
+
[1m[35m (0.1ms)[0m begin transaction
|
320677
|
+
--------------------------------------------------------------------------
|
320678
|
+
PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass
|
320679
|
+
--------------------------------------------------------------------------
|
320680
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
320681
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320682
|
+
-------------------------------------------------------------------
|
320683
|
+
PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id
|
320684
|
+
-------------------------------------------------------------------
|
320685
|
+
[1m[36mPhoto Load (0.1ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1[0m [["id", 971855462]]
|
320686
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
320687
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
320688
|
+
[1m[35mPhoto Load (0.1ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
320689
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
320690
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320691
|
+
----------------------------------------------------------
|
320692
|
+
PolyBelongsTo::FakedCollection: test_0004_#all is an Array
|
320693
|
+
----------------------------------------------------------
|
320694
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
320695
|
+
[1m[35mProfile Load (0.1ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
320696
|
+
[1m[36mPhoto Load (0.1ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
320697
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
320698
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
320699
|
+
-----------------------------------------------------------
|
320700
|
+
PolyBelongsTo::FakedCollection: test_0005_checks if #empty?
|
320701
|
+
-----------------------------------------------------------
|
320702
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
320703
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
320704
|
+
[1m[35mPhoto Load (0.1ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
320705
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
320706
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320707
|
+
----------------------------------------------------------------------
|
320708
|
+
PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid?
|
320709
|
+
----------------------------------------------------------------------
|
320710
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
320711
|
+
[1m[35mProfile Load (0.1ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
320712
|
+
[1m[36mPhoto Load (0.1ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
320713
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
320714
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
320715
|
+
--------------------------------------------------------------------------
|
320716
|
+
PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present?
|
320717
|
+
--------------------------------------------------------------------------
|
320718
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
320719
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
320720
|
+
[1m[35mPhoto Load (0.1ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
320721
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
320722
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320723
|
+
--------------------------------------------------------------
|
320724
|
+
PolyBelongsTo::FakedCollection: test_0008_works with #presence
|
320725
|
+
--------------------------------------------------------------
|
320726
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
320727
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
320728
|
+
[1m[36mPhoto Load (0.0ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
320729
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
320730
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
320731
|
+
------------------------------------------------------------
|
320732
|
+
PolyBelongsTo::FakedCollection: test_0009_#first is the item
|
320733
|
+
------------------------------------------------------------
|
320734
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
320735
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
320736
|
+
[1m[35mPhoto Load (0.1ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
320737
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
320738
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320739
|
+
-----------------------------------------------------------
|
320740
|
+
PolyBelongsTo::FakedCollection: test_0010_#last is the item
|
320741
|
+
-----------------------------------------------------------
|
320742
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
320743
|
+
[1m[35mProfile Load (0.1ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
320744
|
+
[1m[36mPhoto Load (0.1ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
320745
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
320746
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
320747
|
+
---------------------------------------------------------------------------
|
320748
|
+
PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0
|
320749
|
+
---------------------------------------------------------------------------
|
320750
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
320751
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
320752
|
+
[1m[35mPhoto Load (0.1ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
320753
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
320754
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320755
|
+
------------------------------------------------------------------------------------
|
320756
|
+
PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor
|
320757
|
+
------------------------------------------------------------------------------------
|
320758
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
320759
|
+
[1m[35mProfile Load (0.1ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
320760
|
+
[1m[36mPhoto Load (0.1ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
320761
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
320762
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
320763
|
+
--------------------------------------------------------------------------------
|
320764
|
+
PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object
|
320765
|
+
--------------------------------------------------------------------------------
|
320766
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
320767
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
320768
|
+
[1m[35mPhoto Load (0.1ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
320769
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
320770
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320771
|
+
-----------------------------------------------------------------------------
|
320772
|
+
PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object
|
320773
|
+
-----------------------------------------------------------------------------
|
320774
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
320775
|
+
[1m[35mProfile Load (0.1ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
320776
|
+
[1m[36mPhoto Load (0.1ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
320777
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
320778
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
320779
|
+
------------------------------------------------------------------------------------
|
320780
|
+
PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object
|
320781
|
+
------------------------------------------------------------------------------------
|
320782
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
320783
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
320784
|
+
[1m[35mPhoto Load (0.1ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
320785
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
320786
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320787
|
+
---------------------------------------------------------------------
|
320788
|
+
PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately
|
320789
|
+
---------------------------------------------------------------------
|
320790
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
320791
|
+
[1m[35mProfile Load (0.1ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
320792
|
+
[1m[36mPhoto Load (0.1ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
320793
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
320794
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "photos" WHERE "photos"."id" = ?[0m [["id", 971855462]]
|
320795
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
320796
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
320797
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320798
|
+
-------------------------------------------------------------------------
|
320799
|
+
PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil
|
320800
|
+
-------------------------------------------------------------------------
|
320801
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
320802
|
+
[1m[35mProfile Load (0.1ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
320803
|
+
[1m[36mPhoto Load (0.1ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
320804
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
320805
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "photos" WHERE "photos"."id" = ?[0m [["id", 971855462]]
|
320806
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
320807
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
320808
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320809
|
+
-------------------------------------------------------------------
|
320810
|
+
PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately
|
320811
|
+
-------------------------------------------------------------------
|
320812
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
320813
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
320814
|
+
[1m[36mPhoto Load (0.1ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
320815
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
320816
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
320817
|
+
--------------------------------------------------------------------------------------
|
320818
|
+
PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class
|
320819
|
+
--------------------------------------------------------------------------------------
|
320820
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
320821
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
320822
|
+
[1m[35mPhoto Load (0.1ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
320823
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
320824
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320825
|
+
-----------------------------------------------------------------------
|
320826
|
+
PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last
|
320827
|
+
-----------------------------------------------------------------------
|
320828
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
320829
|
+
[1m[35mProfile Load (0.1ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
320830
|
+
[1m[36mPhoto Load (0.1ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
320831
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
320832
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
320833
|
+
--------------------------------------------------------------------------
|
320834
|
+
PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method
|
320835
|
+
--------------------------------------------------------------------------
|
320836
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
320837
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
320838
|
+
[1m[35mPhoto Load (0.1ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
320839
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
320840
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320841
|
+
--------------------------------------------------------------------------------------
|
320842
|
+
PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls
|
320843
|
+
--------------------------------------------------------------------------------------
|
320844
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
320845
|
+
[1m[35mProfile Load (0.1ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
320846
|
+
[1m[36mPhoto Load (0.1ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
320847
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
320848
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
320849
|
+
-------------------------------------------------------------------------
|
320850
|
+
PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many
|
320851
|
+
-------------------------------------------------------------------------
|
320852
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
320853
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
320854
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320855
|
+
------------------------------------------------------------------------------------------------
|
320856
|
+
PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection
|
320857
|
+
------------------------------------------------------------------------------------------------
|
320858
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
320859
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
320860
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
320861
|
+
--------------------------------------------------------------------------
|
320862
|
+
PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes
|
320863
|
+
--------------------------------------------------------------------------
|
320864
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
320865
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
320866
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320867
|
+
------------------------------------------------------------
|
320868
|
+
PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command
|
320869
|
+
------------------------------------------------------------
|
320870
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1[0m [["id", 261299535]]
|
320871
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
320872
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
320873
|
+
---------------------------------------------------------------------------------
|
320874
|
+
PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships
|
320875
|
+
---------------------------------------------------------------------------------
|
320876
|
+
[1m[35mProfile Load (0.1ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]
|
320877
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
320878
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320879
|
+
---------------------------------------------------------------------------------
|
320880
|
+
PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes
|
320881
|
+
---------------------------------------------------------------------------------
|
320882
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1[0m [["id", 261299535]]
|
320883
|
+
[1m[35mPhoto Load (0.1ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]
|
320884
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
320885
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320886
|
+
----------------------------------------------------------------
|
320887
|
+
PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child
|
320888
|
+
----------------------------------------------------------------
|
320889
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1[0m [["id", 261299535]]
|
320890
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
320891
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
320892
|
+
---------------------------------------------------------------------------
|
320893
|
+
PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations
|
320894
|
+
---------------------------------------------------------------------------
|
320895
|
+
[1m[35mProfile Load (0.1ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]
|
320896
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
320897
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320898
|
+
---------------------------------------------------------------
|
320899
|
+
PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness
|
320900
|
+
---------------------------------------------------------------
|
320901
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1[0m [["id", 478996145]]
|
320902
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
320903
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
320904
|
+
-------------------------------------------------------------
|
320905
|
+
PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness
|
320906
|
+
-------------------------------------------------------------
|
320907
|
+
[1m[35mProfile Load (0.1ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]
|
320908
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
320909
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320910
|
+
---------------------------------------------------------------------------
|
320911
|
+
PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name
|
320912
|
+
---------------------------------------------------------------------------
|
320913
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1[0m [["id", 478996145]]
|
320914
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
320915
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
320916
|
+
--------------------------------------------------------------------------------
|
320917
|
+
PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy
|
320918
|
+
--------------------------------------------------------------------------------
|
320919
|
+
[1m[35mProfile Load (0.1ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]
|
320920
|
+
[1m[36mAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."id" ASC LIMIT 1[0m [["addressable_id", 261299535], ["addressable_type", "Profile"]]
|
320921
|
+
[1m[35mGeoLocation Load (0.0ms)[0m SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]
|
320922
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
320923
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320924
|
+
---------------------------------------------------------------------
|
320925
|
+
PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items
|
320926
|
+
---------------------------------------------------------------------
|
320927
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1[0m [["id", 261299535]]
|
320928
|
+
[1m[35mAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["addressable_id", 261299535], ["addressable_type", "Profile"]]
|
320929
|
+
[1m[36mGeoLocation Load (0.0ms)[0m [1mSELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1[0m [["address_id", 761411935]]
|
320930
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
320931
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
320932
|
+
---------------------------------------------------------------------------------------------------------
|
320933
|
+
PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy
|
320934
|
+
---------------------------------------------------------------------------------------------------------
|
320935
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
320936
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
320937
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320938
|
+
------------------------------------------------------------------------
|
320939
|
+
PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name
|
320940
|
+
------------------------------------------------------------------------
|
320941
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
320942
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
320943
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
320944
|
+
------------------------------------------------------
|
320945
|
+
PolyBelongsTo::SingletonSet: test_0002_adds with :add?
|
320946
|
+
------------------------------------------------------
|
320947
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
320948
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
320949
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320950
|
+
-----------------------------------------------------------------------------------------------------------
|
320951
|
+
PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name
|
320952
|
+
-----------------------------------------------------------------------------------------------------------
|
320953
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
320954
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
320955
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
320956
|
+
-------------------------------------------------------------------
|
320957
|
+
PolyBelongsTo::SingletonSet: test_0004_can tell you what's included
|
320958
|
+
-------------------------------------------------------------------
|
320959
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
320960
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
320961
|
+
[1m[35m (0.1ms)[0m begin transaction
|
320962
|
+
--------------------------------------------------------
|
320963
|
+
PolyBelongsTo::SingletonSet: test_0005_flags a duplicate
|
320964
|
+
--------------------------------------------------------
|
320965
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
320966
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
320967
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
320968
|
+
---------------------------------------------------------------------
|
320969
|
+
PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items
|
320970
|
+
---------------------------------------------------------------------
|
320971
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
320972
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
320973
|
+
Connecting to database specified by database.yml
|
320974
|
+
Connecting to database specified by database.yml
|
320975
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
320976
|
+
[1m[35mSQL (2.7ms)[0m INSERT INTO "alphas" ("content", "created_at", "delta_id", "updated_at") VALUES (?, ?, ?, ?) [["content", nil], ["created_at", Mon, 30 Mar 2015 04:29:43 UTC +00:00], ["delta_id", nil], ["updated_at", Mon, 30 Mar 2015 04:29:43 UTC +00:00]]
|
320977
|
+
[1m[36m (33.5ms)[0m [1mcommit transaction[0m
|
320978
|
+
[1m[35m (0.1ms)[0m begin transaction
|
320979
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "beta" ("alpha_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["alpha_id", 137], ["content", nil], ["created_at", Mon, 30 Mar 2015 04:29:43 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 04:29:43 UTC +00:00]]
|
320980
|
+
[1m[35m (21.8ms)[0m commit transaction
|
320981
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
320982
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "capas" ("beta_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["beta_id", 137], ["content", nil], ["created_at", Mon, 30 Mar 2015 04:29:43 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 04:29:43 UTC +00:00]]
|
320983
|
+
[1m[36m (32.3ms)[0m [1mcommit transaction[0m
|
320984
|
+
[1m[35m (0.1ms)[0m begin transaction
|
320985
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "delta" ("capa_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["capa_id", 137], ["content", nil], ["created_at", Mon, 30 Mar 2015 04:29:43 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 04:29:43 UTC +00:00]]
|
320986
|
+
[1m[35m (33.2ms)[0m commit transaction
|
320987
|
+
Connecting to database specified by database.yml
|
320988
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
320989
|
+
[1m[35mSQL (2.6ms)[0m INSERT INTO "alphas" ("content", "created_at", "delta_id", "updated_at") VALUES (?, ?, ?, ?) [["content", nil], ["created_at", Mon, 30 Mar 2015 04:31:47 UTC +00:00], ["delta_id", nil], ["updated_at", Mon, 30 Mar 2015 04:31:47 UTC +00:00]]
|
320990
|
+
[1m[36m (13.1ms)[0m [1mcommit transaction[0m
|
320991
|
+
[1m[35m (0.1ms)[0m begin transaction
|
320992
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "beta" ("alpha_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["alpha_id", 138], ["content", nil], ["created_at", Mon, 30 Mar 2015 04:31:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 04:31:47 UTC +00:00]]
|
320993
|
+
[1m[35m (12.0ms)[0m commit transaction
|
320994
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
320995
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "capas" ("beta_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["beta_id", 138], ["content", nil], ["created_at", Mon, 30 Mar 2015 04:31:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 04:31:47 UTC +00:00]]
|
320996
|
+
[1m[36m (11.8ms)[0m [1mcommit transaction[0m
|
320997
|
+
[1m[35m (0.0ms)[0m begin transaction
|
320998
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "delta" ("capa_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["capa_id", 138], ["content", nil], ["created_at", Mon, 30 Mar 2015 04:31:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 04:31:47 UTC +00:00]]
|
320999
|
+
[1m[35m (12.4ms)[0m commit transaction
|
321000
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
321001
|
+
[1m[35m (0.5ms)[0m UPDATE "alphas" SET "delta_id" = 138, "updated_at" = '2015-03-30 04:31:47.971236' WHERE "alphas"."id" = 138
|
321002
|
+
[1m[36m (14.9ms)[0m [1mcommit transaction[0m
|
321003
|
+
Connecting to database specified by database.yml
|
321004
|
+
Connecting to database specified by database.yml
|
321005
|
+
Connecting to database specified by database.yml
|
321006
|
+
Connecting to database specified by database.yml
|
321007
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
321008
|
+
[1m[35m (0.4ms)[0m begin transaction
|
321009
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-04-01 18:40:30.966503"], ["updated_at", "2015-04-01 18:40:30.966503"]]
|
321010
|
+
[1m[35m (18.9ms)[0m commit transaction
|
321011
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
321012
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 139], ["created_at", "2015-04-01 18:40:31.020698"], ["updated_at", "2015-04-01 18:40:31.020698"]]
|
321013
|
+
[1m[36m (11.7ms)[0m [1mcommit transaction[0m
|
321014
|
+
[1m[35m (0.1ms)[0m begin transaction
|
321015
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["beta_id", 139], ["created_at", "2015-04-01 18:40:31.047140"], ["updated_at", "2015-04-01 18:40:31.047140"]]
|
321016
|
+
[1m[35m (27.9ms)[0m commit transaction
|
321017
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
321018
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 139], ["created_at", "2015-04-01 18:40:31.093062"], ["updated_at", "2015-04-01 18:40:31.093062"]]
|
321019
|
+
[1m[36m (21.1ms)[0m [1mcommit transaction[0m
|
321020
|
+
[1m[35m (0.1ms)[0m begin transaction
|
321021
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ?[0m [["delta_id", 139], ["updated_at", "2015-04-01 18:40:31.133716"], ["id", 139]]
|
321022
|
+
[1m[35m (19.6ms)[0m commit transaction
|
321023
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
321024
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "squishies"
|
321025
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-01 18:40:31', '2015-04-01 18:40:31', 576421514, 'Address', 761411935)[0m
|
321026
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-01 18:40:31', '2015-04-01 18:40:31', 458139734, 'GeoLocation', 343404421)
|
321027
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-01 18:40:31', '2015-04-01 18:40:31', 396855775, 'Address', 1057142427)[0m
|
321028
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-01 18:40:31', '2015-04-01 18:40:31', 783441669, 'GeoLocation', 102195269)
|
321029
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-01 18:40:31', '2015-04-01 18:40:31', 106545386, 'Address', 633598004)[0m
|
321030
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-01 18:40:31', '2015-04-01 18:40:31', 1061951038, 'GeoLocation', 483796712)
|
321031
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "addresses"[0m
|
321032
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1dd5c4cd472bb498b3f32b4de7b608c4', '2015-04-01 18:40:31', '2015-04-01 18:40:31', 761411935)
|
321033
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c0d73244f2e3328e568453aaefde8f7e', '2015-04-01 18:40:31', '2015-04-01 18:40:31', 1057142427)[0m
|
321034
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '40beb435f87ebfbda6192a05476440e8', '2015-04-01 18:40:31', '2015-04-01 18:40:31', 633598004)
|
321035
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "photos"[0m
|
321036
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '720e6c7ff6d482f6adf856b0e933a814', '2015-04-01 18:40:31', '2015-04-01 18:40:31', 775134066)
|
321037
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a1d46ed078e585c6c4c9874afefdaf8d', '2015-04-01 18:40:31', '2015-04-01 18:40:31', 971855462)[0m
|
321038
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a1ecc39d68e279507bea5be30a5eaafc', '2015-04-01 18:40:31', '2015-04-01 18:40:31', 1032612456)
|
321039
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "profiles"[0m
|
321040
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '0c61a107309a938ce9d53128aa101799', '2015-04-01 18:40:31', '2015-04-01 18:40:31', 261299535)
|
321041
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '67423bdc91fab5f5f34e66f05d996dd7', '2015-04-01 18:40:31', '2015-04-01 18:40:31', 478996145)[0m
|
321042
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'f55ac49acba533c78c50cb5d14d04152', '2015-04-01 18:40:31', '2015-04-01 18:40:31', 966629572)
|
321043
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "tires"[0m
|
321044
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-04-01 18:40:31', '2015-04-01 18:40:31', 438300604, 336964236, 849808553)
|
321045
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-04-01 18:40:31', '2015-04-01 18:40:31', 51822084, 336964236, 849808553)[0m
|
321046
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-04-01 18:40:31', '2015-04-01 18:40:31', 873565849, 336964236, 849808553)
|
321047
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-04-01 18:40:31', '2015-04-01 18:40:31', 712317748, 336964236, 849808553)[0m
|
321048
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "geo_locations"
|
321049
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'bc70a6b830c34d739a2662defd34a8aa', '2015-04-01 18:40:31', '2015-04-01 18:40:31', 343404421)[0m
|
321050
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '64af5eb752c08553c02233f748b45f43', '2015-04-01 18:40:31', '2015-04-01 18:40:31', 102195269)
|
321051
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '3a1cf553ae9819aa8438dcb725720cc7', '2015-04-01 18:40:31', '2015-04-01 18:40:31', 483796712)[0m
|
321052
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "phones"
|
321053
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '56f4b45e6ec06841b2e5d4dad30240ea', '2015-04-01 18:40:31', '2015-04-01 18:40:31', 1053526200)[0m
|
321054
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '97ae3a28aa0c975518dc72131474e86e', '2015-04-01 18:40:31', '2015-04-01 18:40:31', 689259936)
|
321055
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3345c3046a0d0072d5d275205e26618e', '2015-04-01 18:40:31', '2015-04-01 18:40:31', 762608046)[0m
|
321056
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "users"
|
321057
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-04-01 18:40:31', '2015-04-01 18:40:31', 902541635)[0m
|
321058
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-04-01 18:40:31', '2015-04-01 18:40:31', 380377255)
|
321059
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-04-01 18:40:31', '2015-04-01 18:40:31', 619379998)[0m
|
321060
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "cars"
|
321061
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-04-01 18:40:31', '2015-04-01 18:40:31', 421646738, 336964236)[0m
|
321062
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "tags"
|
321063
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1fdd7f181bed54f2ac215b40e60223b3', '2015-04-01 18:40:31', '2015-04-01 18:40:31', 884173432)[0m
|
321064
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'bc7453004edc7bd6168b4e5a644ca15d', '2015-04-01 18:40:31', '2015-04-01 18:40:31', 1035759634)
|
321065
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0205d703ef66e769ef9e656cb5a62b15', '2015-04-01 18:40:31', '2015-04-01 18:40:31', 471587404)[0m
|
321066
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "ssns"
|
321067
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9c1386d2d40503cc82bea6d02da342d2', '2015-04-01 18:40:31', '2015-04-01 18:40:31', 819246218)[0m
|
321068
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7f860e86dabaaf3ba69c188d98720349', '2015-04-01 18:40:31', '2015-04-01 18:40:31', 970698464)
|
321069
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'dbec05670d8d4cc5a250335df1c25da6', '2015-04-01 18:40:31', '2015-04-01 18:40:31', 410780858)[0m
|
321070
|
+
[1m[35m (18.5ms)[0m commit transaction
|
321071
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321072
|
+
------------------------------------------------------------------------------
|
321073
|
+
PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes
|
321074
|
+
------------------------------------------------------------------------------
|
321075
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
321076
|
+
[1m[36mProfile Load (0.3ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1[0m [["id", 966629572]]
|
321077
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
321078
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321079
|
+
------------------------------------------------------------
|
321080
|
+
PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build
|
321081
|
+
------------------------------------------------------------
|
321082
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
321083
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
321084
|
+
-------------------------------------------------------
|
321085
|
+
PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build
|
321086
|
+
-------------------------------------------------------
|
321087
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
321088
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321089
|
+
--------------------------------------------------------------------------------------
|
321090
|
+
PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes
|
321091
|
+
--------------------------------------------------------------------------------------
|
321092
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
321093
|
+
[1m[36mProfile Load (0.0ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1[0m [["id", 261299535]]
|
321094
|
+
[1m[35mPhoto Load (0.1ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]
|
321095
|
+
[1m[36mPhone Load (0.2ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ?[0m [["phoneable_id", 261299535], ["phoneable_type", "Profile"]]
|
321096
|
+
[1m[35mSquishy Load (0.2ms)[0m SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]]
|
321097
|
+
[1m[36mAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ?[0m [["addressable_id", 261299535], ["addressable_type", "Profile"]]
|
321098
|
+
[1m[35mGeoLocation Load (0.1ms)[0m SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]
|
321099
|
+
[1m[36mSquishy Load (0.1ms)[0m [1mSELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ?[0m [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]]
|
321100
|
+
[1m[35mSquishy Load (0.1ms)[0m SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]
|
321101
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
321102
|
+
[1m[35m (0.1ms)[0m begin transaction
|
321103
|
+
----------------------------------------------------------------------
|
321104
|
+
PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user
|
321105
|
+
----------------------------------------------------------------------
|
321106
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
321107
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
321108
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-04-01 18:40:31.336552"], ["updated_at", "2015-04-01 18:40:31.336552"]]
|
321109
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
321110
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
321111
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
321112
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321113
|
+
------------------------------------------------------------------------------------
|
321114
|
+
PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil
|
321115
|
+
------------------------------------------------------------------------------------
|
321116
|
+
[1m[35mTag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]
|
321117
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
321118
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321119
|
+
-----------------------------------------------------
|
321120
|
+
PolyBelongsTo::Core: test_0008_#pbts multiple parents
|
321121
|
+
-----------------------------------------------------
|
321122
|
+
[1m[36mTire Load (0.1ms)[0m [1mSELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1[0m [["id", 438300604]]
|
321123
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
321124
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
321125
|
+
---------------------------------------------------------------------
|
321126
|
+
PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id
|
321127
|
+
---------------------------------------------------------------------
|
321128
|
+
[1m[35mTag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]
|
321129
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
321130
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321131
|
+
--------------------------------------------------------------------
|
321132
|
+
PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil
|
321133
|
+
--------------------------------------------------------------------
|
321134
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
321135
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
321136
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321137
|
+
---------------------------------------------------------------------------
|
321138
|
+
PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance
|
321139
|
+
---------------------------------------------------------------------------
|
321140
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
321141
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
321142
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
321143
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321144
|
+
----------------------------------------------------------------------
|
321145
|
+
PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic
|
321146
|
+
----------------------------------------------------------------------
|
321147
|
+
[1m[35mAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]]
|
321148
|
+
[1m[36mProfile Load (0.0ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1[0m [["id", 261299535]]
|
321149
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]
|
321150
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
321151
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321152
|
+
---------------------------------------------------------------------------------
|
321153
|
+
PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil
|
321154
|
+
---------------------------------------------------------------------------------
|
321155
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
321156
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
321157
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321158
|
+
---------------------------------------------------------------------------------------
|
321159
|
+
PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes
|
321160
|
+
---------------------------------------------------------------------------------------
|
321161
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]
|
321162
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
321163
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321164
|
+
---------------------------------------------------------------------
|
321165
|
+
PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents
|
321166
|
+
---------------------------------------------------------------------
|
321167
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ?[0m [["user_id", 1]]
|
321168
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
321169
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["id", 1], ["created_at", "2015-04-01 18:40:31.369017"], ["updated_at", "2015-04-01 18:40:31.369017"]]
|
321170
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-04-01 18:40:31.370406"], ["updated_at", "2015-04-01 18:40:31.370406"]]
|
321171
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-04-01 18:40:31.371411"], ["updated_at", "2015-04-01 18:40:31.371411"]]
|
321172
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
321173
|
+
[1m[36mTire Load (0.1ms)[0m [1mSELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1[0m [["car_id", 421646739]]
|
321174
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
321175
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 421646739]]
|
321176
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
321177
|
+
[1m[36mSsn Load (0.1ms)[0m [1mSELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1[0m [["user_id", 1]]
|
321178
|
+
[1m[35mTag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]]
|
321179
|
+
[1m[36mContact Load (0.1ms)[0m [1mSELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ?[0m [["user_id", 1]]
|
321180
|
+
[1m[35mProfile Load (0.1ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]]
|
321181
|
+
[1m[36mTire Load (0.1ms)[0m [1mSELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ?[0m [["car_id", 421646739]]
|
321182
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]]
|
321183
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "cars" WHERE "cars"."id" = ?[0m [["id", 421646739]]
|
321184
|
+
[1m[35mTire Load (0.1ms)[0m SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]]
|
321185
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]]
|
321186
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
321187
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
321188
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321189
|
+
-----------------------------------------------------------------
|
321190
|
+
PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user
|
321191
|
+
-----------------------------------------------------------------
|
321192
|
+
[1m[36mTag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 884173432]]
|
321193
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
321194
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321195
|
+
-----------------------------------------------------------------------
|
321196
|
+
PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag
|
321197
|
+
-----------------------------------------------------------------------
|
321198
|
+
[1m[35mTag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]
|
321199
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
321200
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321201
|
+
----------------------------------------------------------------
|
321202
|
+
PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil
|
321203
|
+
----------------------------------------------------------------
|
321204
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
321205
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
321206
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321207
|
+
------------------------------------------------------------------------------------
|
321208
|
+
PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id
|
321209
|
+
------------------------------------------------------------------------------------
|
321210
|
+
[1m[35mTag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]
|
321211
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
321212
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321213
|
+
--------------------------------------------------------------------------------------------------
|
321214
|
+
PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type
|
321215
|
+
--------------------------------------------------------------------------------------------------
|
321216
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 1053526200]]
|
321217
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
321218
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321219
|
+
-------------------------------------------------------------------
|
321220
|
+
PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil
|
321221
|
+
-------------------------------------------------------------------
|
321222
|
+
[1m[35mTag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]
|
321223
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
321224
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321225
|
+
--------------------------------------------------------------------------------------------
|
321226
|
+
PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id
|
321227
|
+
--------------------------------------------------------------------------------------------
|
321228
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 1053526200]]
|
321229
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
321230
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321231
|
+
----------------------------------------------------------------
|
321232
|
+
PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil
|
321233
|
+
----------------------------------------------------------------
|
321234
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
321235
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
321236
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321237
|
+
-----------------------------------------------------------------------
|
321238
|
+
PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile
|
321239
|
+
-----------------------------------------------------------------------
|
321240
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
321241
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
321242
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-04-01 18:40:31.394246"], ["updated_at", "2015-04-01 18:40:31.394246"]]
|
321243
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-04-01 18:40:31.395366"], ["updated_at", "2015-04-01 18:40:31.395366"]]
|
321244
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
321245
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]
|
321246
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
321247
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321248
|
+
-------------------------------------------------------------
|
321249
|
+
PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic
|
321250
|
+
-------------------------------------------------------------
|
321251
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
321252
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
321253
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321254
|
+
------------------------------------------------------------
|
321255
|
+
PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic
|
321256
|
+
------------------------------------------------------------
|
321257
|
+
[1m[35mTag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]
|
321258
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
321259
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321260
|
+
------------------------------------------------------------------------
|
321261
|
+
PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable
|
321262
|
+
------------------------------------------------------------------------
|
321263
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 1053526200]]
|
321264
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
321265
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321266
|
+
------------------------------------------
|
321267
|
+
PolyBelongsTo::Core: test_0001_is a module
|
321268
|
+
------------------------------------------
|
321269
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
321270
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
321271
|
+
-------------------------------------------------------------------------
|
321272
|
+
PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user
|
321273
|
+
-------------------------------------------------------------------------
|
321274
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
321275
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
321276
|
+
[1m[35m (0.1ms)[0m begin transaction
|
321277
|
+
---------------------------------------------------------------------------
|
321278
|
+
PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile'
|
321279
|
+
---------------------------------------------------------------------------
|
321280
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 1053526200]]
|
321281
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
321282
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321283
|
+
----------------------------------------------------------
|
321284
|
+
PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic
|
321285
|
+
----------------------------------------------------------
|
321286
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]
|
321287
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
321288
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321289
|
+
--------------------------------------------------------------------------------------
|
321290
|
+
PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone
|
321291
|
+
--------------------------------------------------------------------------------------
|
321292
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 1053526200]]
|
321293
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
321294
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321295
|
+
-------------------------------------------------------------------------------------
|
321296
|
+
PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil
|
321297
|
+
-------------------------------------------------------------------------------------
|
321298
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
321299
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
321300
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321301
|
+
----------------------------------------------------------------------------------------------
|
321302
|
+
PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship
|
321303
|
+
----------------------------------------------------------------------------------------------
|
321304
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
321305
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-04-01 18:40:31.406389"], ["updated_at", "2015-04-01 18:40:31.406389"]]
|
321306
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
321307
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
321308
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321309
|
+
-------------------------------------------------------------------------------------------------------------------------
|
321310
|
+
PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first
|
321311
|
+
-------------------------------------------------------------------------------------------------------------------------
|
321312
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
321313
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-04-01 18:40:31.408320"], ["updated_at", "2015-04-01 18:40:31.408320"]]
|
321314
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
321315
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
321316
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 140], ["created_at", "2015-04-01 18:40:31.410816"], ["updated_at", "2015-04-01 18:40:31.410816"]]
|
321317
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
321318
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
321319
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["beta_id", 140], ["created_at", "2015-04-01 18:40:31.412747"], ["updated_at", "2015-04-01 18:40:31.412747"]]
|
321320
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
321321
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
321322
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 140], ["created_at", "2015-04-01 18:40:31.414603"], ["updated_at", "2015-04-01 18:40:31.414603"]]
|
321323
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
321324
|
+
[1m[35mCapa Load (0.1ms)[0m SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 140]]
|
321325
|
+
[1m[36mCapa Load (0.0ms)[0m [1mSELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1[0m [["id", 140]]
|
321326
|
+
[1m[35mCapa Load (0.0ms)[0m SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 140]]
|
321327
|
+
[1m[36mCapa Load (0.0ms)[0m [1mSELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1[0m [["id", 140]]
|
321328
|
+
[1m[35mBeta Load (0.1ms)[0m SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 140]]
|
321329
|
+
[1m[36mBeta Load (0.0ms)[0m [1mSELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1[0m [["id", 140]]
|
321330
|
+
[1m[35mBeta Load (0.0ms)[0m SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 140]]
|
321331
|
+
[1m[36mAlpha Load (0.1ms)[0m [1mSELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1[0m [["id", 140]]
|
321332
|
+
[1m[35mAlpha Load (0.0ms)[0m SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 140]]
|
321333
|
+
[1m[36mAlpha Load (0.0ms)[0m [1mSELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1[0m [["id", 140]]
|
321334
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
321335
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321336
|
+
-------------------------------------------------------------------------------
|
321337
|
+
PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id
|
321338
|
+
-------------------------------------------------------------------------------
|
321339
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]
|
321340
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
321341
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321342
|
+
------------------------------------------------------------------------------------------
|
321343
|
+
PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat
|
321344
|
+
------------------------------------------------------------------------------------------
|
321345
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
321346
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-04-01 18:40:31.421429"], ["updated_at", "2015-04-01 18:40:31.421429"]]
|
321347
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
321348
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
321349
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["alpha_id", 140], ["created_at", "2015-04-01 18:40:31.423373"], ["updated_at", "2015-04-01 18:40:31.423373"]]
|
321350
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
321351
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
321352
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 140], ["created_at", "2015-04-01 18:40:31.425199"], ["updated_at", "2015-04-01 18:40:31.425199"]]
|
321353
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
321354
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
321355
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["capa_id", 140], ["created_at", "2015-04-01 18:40:31.427125"], ["updated_at", "2015-04-01 18:40:31.427125"]]
|
321356
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
321357
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
321358
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 140], ["updated_at", "2015-04-01 18:40:31.428459"], ["id", 140]]
|
321359
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
321360
|
+
[1m[35mCapa Load (0.1ms)[0m SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 140]]
|
321361
|
+
[1m[36mCapa Load (0.0ms)[0m [1mSELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1[0m [["id", 140]]
|
321362
|
+
[1m[35mCapa Load (0.0ms)[0m SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 140]]
|
321363
|
+
[1m[36mCapa Load (0.0ms)[0m [1mSELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1[0m [["id", 140]]
|
321364
|
+
[1m[35mBeta Load (0.0ms)[0m SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 140]]
|
321365
|
+
[1m[36mBeta Load (0.0ms)[0m [1mSELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1[0m [["id", 140]]
|
321366
|
+
[1m[35mBeta Load (0.0ms)[0m SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 140]]
|
321367
|
+
[1m[36mAlpha Load (0.0ms)[0m [1mSELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1[0m [["id", 140]]
|
321368
|
+
[1m[35mAlpha Load (0.0ms)[0m SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 140]]
|
321369
|
+
[1m[36mAlpha Load (0.0ms)[0m [1mSELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1[0m [["id", 140]]
|
321370
|
+
[1m[35mDelta Load (0.1ms)[0m SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 140]]
|
321371
|
+
[1m[36mDelta Load (0.0ms)[0m [1mSELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1[0m [["id", 140]]
|
321372
|
+
[1m[35mDelta Load (0.0ms)[0m SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 140]]
|
321373
|
+
[1m[36mDelta Load (0.1ms)[0m [1mSELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1[0m [["id", 140]]
|
321374
|
+
[1m[35mDelta Load (0.0ms)[0m SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 140]]
|
321375
|
+
[1m[36mCapa Load (0.0ms)[0m [1mSELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1[0m [["id", 140]]
|
321376
|
+
[1m[35mCapa Load (0.0ms)[0m SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 140]]
|
321377
|
+
[1m[36mCapa Load (0.0ms)[0m [1mSELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1[0m [["id", 140]]
|
321378
|
+
[1m[35mBeta Load (0.1ms)[0m SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 140]]
|
321379
|
+
[1m[36mBeta Load (0.0ms)[0m [1mSELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1[0m [["id", 140]]
|
321380
|
+
[1m[35mBeta Load (0.0ms)[0m SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 140]]
|
321381
|
+
[1m[36mAlpha Load (0.0ms)[0m [1mSELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1[0m [["id", 140]]
|
321382
|
+
[1m[35mAlpha Load (0.0ms)[0m SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 140]]
|
321383
|
+
[1m[36mAlpha Load (0.0ms)[0m [1mSELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1[0m [["id", 140]]
|
321384
|
+
[1m[35mAlpha Load (0.0ms)[0m SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 140]]
|
321385
|
+
[1m[36mAlpha Load (0.0ms)[0m [1mSELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1[0m [["id", 140]]
|
321386
|
+
[1m[35mDelta Load (0.0ms)[0m SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 140]]
|
321387
|
+
[1m[36mDelta Load (0.0ms)[0m [1mSELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1[0m [["id", 140]]
|
321388
|
+
[1m[35mDelta Load (0.0ms)[0m SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 140]]
|
321389
|
+
[1m[36mCapa Load (0.0ms)[0m [1mSELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1[0m [["id", 140]]
|
321390
|
+
[1m[35mCapa Load (0.0ms)[0m SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 140]]
|
321391
|
+
[1m[36mCapa Load (0.0ms)[0m [1mSELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1[0m [["id", 140]]
|
321392
|
+
[1m[35mBeta Load (0.0ms)[0m SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 140]]
|
321393
|
+
[1m[36mBeta Load (0.0ms)[0m [1mSELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1[0m [["id", 140]]
|
321394
|
+
[1m[35mBeta Load (0.0ms)[0m SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 140]]
|
321395
|
+
[1m[36mBeta Load (0.0ms)[0m [1mSELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1[0m [["id", 140]]
|
321396
|
+
[1m[35mBeta Load (0.0ms)[0m SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 140]]
|
321397
|
+
[1m[36mAlpha Load (0.0ms)[0m [1mSELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1[0m [["id", 140]]
|
321398
|
+
[1m[35mAlpha Load (0.0ms)[0m SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 140]]
|
321399
|
+
[1m[36mAlpha Load (0.0ms)[0m [1mSELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1[0m [["id", 140]]
|
321400
|
+
[1m[35mDelta Load (0.0ms)[0m SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 140]]
|
321401
|
+
[1m[36mDelta Load (0.0ms)[0m [1mSELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1[0m [["id", 140]]
|
321402
|
+
[1m[35mDelta Load (0.0ms)[0m SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 140]]
|
321403
|
+
[1m[36mCapa Load (0.0ms)[0m [1mSELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1[0m [["id", 140]]
|
321404
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
321405
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321406
|
+
------------------------------------------------------------------
|
321407
|
+
PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil
|
321408
|
+
------------------------------------------------------------------
|
321409
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
321410
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
321411
|
+
[1m[35m (0.1ms)[0m begin transaction
|
321412
|
+
-----------------------------------------------------------------------------------------------------------
|
321413
|
+
PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name
|
321414
|
+
-----------------------------------------------------------------------------------------------------------
|
321415
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
321416
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
321417
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321418
|
+
-------------------------------------------------------------------
|
321419
|
+
PolyBelongsTo::SingletonSet: test_0004_can tell you what's included
|
321420
|
+
-------------------------------------------------------------------
|
321421
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
321422
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
321423
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321424
|
+
--------------------------------------------------------
|
321425
|
+
PolyBelongsTo::SingletonSet: test_0005_flags a duplicate
|
321426
|
+
--------------------------------------------------------
|
321427
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
321428
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
321429
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321430
|
+
------------------------------------------------------------------------
|
321431
|
+
PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name
|
321432
|
+
------------------------------------------------------------------------
|
321433
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
321434
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
321435
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321436
|
+
------------------------------------------------------
|
321437
|
+
PolyBelongsTo::SingletonSet: test_0002_adds with :add?
|
321438
|
+
------------------------------------------------------
|
321439
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
321440
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
321441
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321442
|
+
---------------------------------------------------------------------
|
321443
|
+
PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items
|
321444
|
+
---------------------------------------------------------------------
|
321445
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
321446
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
321447
|
+
[1m[35m (0.1ms)[0m begin transaction
|
321448
|
+
-------------------------------------------------------------------
|
321449
|
+
PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id
|
321450
|
+
-------------------------------------------------------------------
|
321451
|
+
[1m[36mPhoto Load (0.1ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1[0m [["id", 971855462]]
|
321452
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
321453
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
321454
|
+
[1m[35mPhoto Load (0.1ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
321455
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
321456
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321457
|
+
---------------------------------------------------------------------------
|
321458
|
+
PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0
|
321459
|
+
---------------------------------------------------------------------------
|
321460
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
321461
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
321462
|
+
[1m[36mPhoto Load (0.0ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
321463
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
321464
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321465
|
+
------------------------------------------------------------------------------------
|
321466
|
+
PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object
|
321467
|
+
------------------------------------------------------------------------------------
|
321468
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
321469
|
+
[1m[36mProfile Load (0.0ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
321470
|
+
[1m[35mPhoto Load (0.0ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
321471
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
321472
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321473
|
+
------------------------------------------------------------------------------------
|
321474
|
+
PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor
|
321475
|
+
------------------------------------------------------------------------------------
|
321476
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
321477
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
321478
|
+
[1m[36mPhoto Load (0.0ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
321479
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
321480
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321481
|
+
-------------------------------------------------------------------------
|
321482
|
+
PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many
|
321483
|
+
-------------------------------------------------------------------------
|
321484
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
321485
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
321486
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321487
|
+
-----------------------------------------------------------------------------
|
321488
|
+
PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object
|
321489
|
+
-----------------------------------------------------------------------------
|
321490
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
321491
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
321492
|
+
[1m[36mPhoto Load (0.0ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
321493
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
321494
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321495
|
+
---------------------------------------------------------------------
|
321496
|
+
PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately
|
321497
|
+
---------------------------------------------------------------------
|
321498
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
321499
|
+
[1m[36mProfile Load (0.0ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
321500
|
+
[1m[35mPhoto Load (0.0ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
321501
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
321502
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]
|
321503
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
321504
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
321505
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321506
|
+
--------------------------------------------------------------------------
|
321507
|
+
PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present?
|
321508
|
+
--------------------------------------------------------------------------
|
321509
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
321510
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
321511
|
+
[1m[35mPhoto Load (0.1ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
321512
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
321513
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321514
|
+
--------------------------------------------------------------------------------------
|
321515
|
+
PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls
|
321516
|
+
--------------------------------------------------------------------------------------
|
321517
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
321518
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
321519
|
+
[1m[36mPhoto Load (0.0ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
321520
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
321521
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
321522
|
+
--------------------------------------------------------------
|
321523
|
+
PolyBelongsTo::FakedCollection: test_0008_works with #presence
|
321524
|
+
--------------------------------------------------------------
|
321525
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
321526
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
321527
|
+
[1m[35mPhoto Load (0.0ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
321528
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
321529
|
+
[1m[35m (0.1ms)[0m begin transaction
|
321530
|
+
------------------------------------------------------------------------------------------------
|
321531
|
+
PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection
|
321532
|
+
------------------------------------------------------------------------------------------------
|
321533
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
321534
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
321535
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321536
|
+
-----------------------------------------------------------
|
321537
|
+
PolyBelongsTo::FakedCollection: test_0005_checks if #empty?
|
321538
|
+
-----------------------------------------------------------
|
321539
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
321540
|
+
[1m[36mProfile Load (0.0ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
321541
|
+
[1m[35mPhoto Load (0.1ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
321542
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
321543
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321544
|
+
-----------------------------------------------------------
|
321545
|
+
PolyBelongsTo::FakedCollection: test_0010_#last is the item
|
321546
|
+
-----------------------------------------------------------
|
321547
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
321548
|
+
[1m[35mProfile Load (0.1ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
321549
|
+
[1m[36mPhoto Load (0.0ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
321550
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
321551
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321552
|
+
------------------------------------------------------------------------
|
321553
|
+
PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly
|
321554
|
+
------------------------------------------------------------------------
|
321555
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
321556
|
+
[1m[36mProfile Load (0.0ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
321557
|
+
[1m[35mPhoto Load (0.0ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
321558
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
321559
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321560
|
+
------------------------------------------------------------
|
321561
|
+
PolyBelongsTo::FakedCollection: test_0009_#first is the item
|
321562
|
+
------------------------------------------------------------
|
321563
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
321564
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
321565
|
+
[1m[36mPhoto Load (0.0ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
321566
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
321567
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321568
|
+
----------------------------------------------------------
|
321569
|
+
PolyBelongsTo::FakedCollection: test_0004_#all is an Array
|
321570
|
+
----------------------------------------------------------
|
321571
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
321572
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
321573
|
+
[1m[35mPhoto Load (0.1ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
321574
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
321575
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321576
|
+
--------------------------------------------------------------------------------------
|
321577
|
+
PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class
|
321578
|
+
--------------------------------------------------------------------------------------
|
321579
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
321580
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
321581
|
+
[1m[36mPhoto Load (0.0ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
321582
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
321583
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321584
|
+
--------------------------------------------------------------------------------
|
321585
|
+
PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object
|
321586
|
+
--------------------------------------------------------------------------------
|
321587
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
321588
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
321589
|
+
[1m[35mPhoto Load (0.0ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
321590
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
321591
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321592
|
+
-------------------------------------------------------------------------
|
321593
|
+
PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil
|
321594
|
+
-------------------------------------------------------------------------
|
321595
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
321596
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
321597
|
+
[1m[36mPhoto Load (0.0ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
321598
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
321599
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "photos" WHERE "photos"."id" = ?[0m [["id", 971855462]]
|
321600
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
321601
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
321602
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321603
|
+
-----------------------------------------------------------------------
|
321604
|
+
PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last
|
321605
|
+
-----------------------------------------------------------------------
|
321606
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
321607
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
321608
|
+
[1m[36mPhoto Load (0.0ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
321609
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
321610
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321611
|
+
--------------------------------------------------------------------------
|
321612
|
+
PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method
|
321613
|
+
--------------------------------------------------------------------------
|
321614
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
321615
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
321616
|
+
[1m[35mPhoto Load (0.1ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
321617
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
321618
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321619
|
+
--------------------------------------------------------------------------
|
321620
|
+
PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass
|
321621
|
+
--------------------------------------------------------------------------
|
321622
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
321623
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321624
|
+
----------------------------------------------------------------------
|
321625
|
+
PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid?
|
321626
|
+
----------------------------------------------------------------------
|
321627
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
321628
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
321629
|
+
[1m[36mPhoto Load (0.0ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
321630
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
321631
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321632
|
+
-------------------------------------------------------------------
|
321633
|
+
PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately
|
321634
|
+
-------------------------------------------------------------------
|
321635
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
321636
|
+
[1m[36mProfile Load (0.0ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
321637
|
+
[1m[35mPhoto Load (0.0ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
321638
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
321639
|
+
[1m[35m (0.1ms)[0m begin transaction
|
321640
|
+
-------------------------------------------------------------
|
321641
|
+
PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness
|
321642
|
+
-------------------------------------------------------------
|
321643
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1[0m [["id", 261299535]]
|
321644
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
321645
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321646
|
+
---------------------------------------------------------------------
|
321647
|
+
PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items
|
321648
|
+
---------------------------------------------------------------------
|
321649
|
+
[1m[35mProfile Load (0.1ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]
|
321650
|
+
[1m[36mAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."id" ASC LIMIT 1[0m [["addressable_id", 261299535], ["addressable_type", "Profile"]]
|
321651
|
+
[1m[35mGeoLocation Load (0.0ms)[0m SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]
|
321652
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
321653
|
+
[1m[35m (0.1ms)[0m begin transaction
|
321654
|
+
------------------------------------------------------------
|
321655
|
+
PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command
|
321656
|
+
------------------------------------------------------------
|
321657
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1[0m [["id", 261299535]]
|
321658
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
321659
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321660
|
+
---------------------------------------------------------------------------------
|
321661
|
+
PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes
|
321662
|
+
---------------------------------------------------------------------------------
|
321663
|
+
[1m[35mProfile Load (0.1ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]
|
321664
|
+
[1m[36mPhoto Load (0.0ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 261299535], ["photoable_type", "Profile"]]
|
321665
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
321666
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321667
|
+
---------------------------------------------------------------------------
|
321668
|
+
PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations
|
321669
|
+
---------------------------------------------------------------------------
|
321670
|
+
[1m[35mProfile Load (0.1ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]
|
321671
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
321672
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321673
|
+
--------------------------------------------------------------------------------
|
321674
|
+
PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy
|
321675
|
+
--------------------------------------------------------------------------------
|
321676
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1[0m [["id", 261299535]]
|
321677
|
+
[1m[35mAddress Load (0.0ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["addressable_id", 261299535], ["addressable_type", "Profile"]]
|
321678
|
+
[1m[36mGeoLocation Load (0.0ms)[0m [1mSELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1[0m [["address_id", 761411935]]
|
321679
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
321680
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321681
|
+
---------------------------------------------------------------------------------
|
321682
|
+
PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships
|
321683
|
+
---------------------------------------------------------------------------------
|
321684
|
+
[1m[35mProfile Load (0.1ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]
|
321685
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
321686
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321687
|
+
---------------------------------------------------------------------------
|
321688
|
+
PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name
|
321689
|
+
---------------------------------------------------------------------------
|
321690
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1[0m [["id", 478996145]]
|
321691
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
321692
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321693
|
+
---------------------------------------------------------------------------------------------------------
|
321694
|
+
PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy
|
321695
|
+
---------------------------------------------------------------------------------------------------------
|
321696
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
321697
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
321698
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321699
|
+
----------------------------------------------------------------
|
321700
|
+
PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child
|
321701
|
+
----------------------------------------------------------------
|
321702
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1[0m [["id", 261299535]]
|
321703
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
321704
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321705
|
+
--------------------------------------------------------------------------
|
321706
|
+
PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes
|
321707
|
+
--------------------------------------------------------------------------
|
321708
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
321709
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
321710
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321711
|
+
---------------------------------------------------------------
|
321712
|
+
PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness
|
321713
|
+
---------------------------------------------------------------
|
321714
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1[0m [["id", 478996145]]
|
321715
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
321716
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321717
|
+
-------------------------------------------------------------------------------------------------------
|
321718
|
+
PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle
|
321719
|
+
-------------------------------------------------------------------------------------------------------
|
321720
|
+
[1m[35mDelta Load (0.1ms)[0m SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 139]]
|
321721
|
+
[1m[36mAlpha Load (0.0ms)[0m [1mSELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1[0m [["id", 139]]
|
321722
|
+
[1m[35mBeta Load (0.1ms)[0m SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 139]]
|
321723
|
+
[1m[36mCapa Load (0.0ms)[0m [1mSELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1[0m [["id", 139]]
|
321724
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
321725
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321726
|
+
----------------------------------------------------------------------------------------------------------------------------------------
|
321727
|
+
PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference
|
321728
|
+
----------------------------------------------------------------------------------------------------------------------------------------
|
321729
|
+
[1m[35mCapa Load (0.1ms)[0m SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 139]]
|
321730
|
+
[1m[36mDelta Load (0.1ms)[0m [1mSELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ?[0m [["capa_id", 139]]
|
321731
|
+
[1m[35mAlpha Load (0.1ms)[0m SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 139]]
|
321732
|
+
[1m[36mBeta Load (0.1ms)[0m [1mSELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ?[0m [["alpha_id", 139]]
|
321733
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
321734
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
321735
|
+
[1m[35m (0.1ms)[0m begin transaction
|
321736
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-04-01 19:43:55.449524"], ["updated_at", "2015-04-01 19:43:55.449524"]]
|
321737
|
+
[1m[35m (14.6ms)[0m commit transaction
|
321738
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
321739
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 140], ["created_at", "2015-04-01 19:43:55.497547"], ["updated_at", "2015-04-01 19:43:55.497547"]]
|
321740
|
+
[1m[36m (11.6ms)[0m [1mcommit transaction[0m
|
321741
|
+
[1m[35m (0.1ms)[0m begin transaction
|
321742
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["beta_id", 140], ["created_at", "2015-04-01 19:43:55.525666"], ["updated_at", "2015-04-01 19:43:55.525666"]]
|
321743
|
+
[1m[35m (17.8ms)[0m commit transaction
|
321744
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321745
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 140], ["created_at", "2015-04-01 19:43:55.568666"], ["updated_at", "2015-04-01 19:43:55.568666"]]
|
321746
|
+
[1m[36m (23.7ms)[0m [1mcommit transaction[0m
|
321747
|
+
[1m[35m (0.1ms)[0m begin transaction
|
321748
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ?[0m [["delta_id", 140], ["updated_at", "2015-04-01 19:43:55.594809"], ["id", 140]]
|
321749
|
+
[1m[35m (37.6ms)[0m commit transaction
|
321750
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
321751
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "squishies"
|
321752
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-01 19:43:55', '2015-04-01 19:43:55', 576421514, 'Address', 761411935)[0m
|
321753
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-01 19:43:55', '2015-04-01 19:43:55', 458139734, 'GeoLocation', 343404421)
|
321754
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-01 19:43:55', '2015-04-01 19:43:55', 396855775, 'Address', 1057142427)[0m
|
321755
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-01 19:43:55', '2015-04-01 19:43:55', 783441669, 'GeoLocation', 102195269)
|
321756
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-01 19:43:55', '2015-04-01 19:43:55', 106545386, 'Address', 633598004)[0m
|
321757
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-01 19:43:55', '2015-04-01 19:43:55', 1061951038, 'GeoLocation', 483796712)
|
321758
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "addresses"[0m
|
321759
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2040858ef40c6467fb8a1b6d862e51ab', '2015-04-01 19:43:55', '2015-04-01 19:43:55', 761411935)
|
321760
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6f1c628814d07e72ce8e39d704838d7a', '2015-04-01 19:43:55', '2015-04-01 19:43:55', 1057142427)[0m
|
321761
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c8bc070a0abbd0989a078f9bbbe6b1a2', '2015-04-01 19:43:55', '2015-04-01 19:43:55', 633598004)
|
321762
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "photos"[0m
|
321763
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6d55e5fdcb07584160846f153190f08b', '2015-04-01 19:43:55', '2015-04-01 19:43:55', 775134066)
|
321764
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bae10e741bc59429d28836257735e94e', '2015-04-01 19:43:55', '2015-04-01 19:43:55', 971855462)[0m
|
321765
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '962db0d1aaf166bb9ef66e0e96196be3', '2015-04-01 19:43:55', '2015-04-01 19:43:55', 1032612456)
|
321766
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "profiles"[0m
|
321767
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '541bd38231bcc8dbcf4afd3d2352e146', '2015-04-01 19:43:55', '2015-04-01 19:43:55', 261299535)
|
321768
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '000d5fff8c7d6d2a0438931ce2c9e85c', '2015-04-01 19:43:55', '2015-04-01 19:43:55', 478996145)[0m
|
321769
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9aff57c539a6bd7f3205c85a3ab9e341', '2015-04-01 19:43:55', '2015-04-01 19:43:55', 966629572)
|
321770
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "tires"[0m
|
321771
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-04-01 19:43:55', '2015-04-01 19:43:55', 438300604, 336964236, 849808553)
|
321772
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-04-01 19:43:55', '2015-04-01 19:43:55', 51822084, 336964236, 849808553)[0m
|
321773
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-04-01 19:43:55', '2015-04-01 19:43:55', 873565849, 336964236, 849808553)
|
321774
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-04-01 19:43:55', '2015-04-01 19:43:55', 712317748, 336964236, 849808553)[0m
|
321775
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "geo_locations"
|
321776
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '1366e71e4e843f804241a21f9009fdaa', '2015-04-01 19:43:55', '2015-04-01 19:43:55', 343404421)[0m
|
321777
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'd10f80da90bd9535e0ea16041f5853cf', '2015-04-01 19:43:55', '2015-04-01 19:43:55', 102195269)
|
321778
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b1597247f2557d1cceace181495bc090', '2015-04-01 19:43:55', '2015-04-01 19:43:55', 483796712)[0m
|
321779
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "phones"
|
321780
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ac86fbcfc8dfa73893f5fd0efbf8575c', '2015-04-01 19:43:55', '2015-04-01 19:43:55', 1053526200)[0m
|
321781
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c9e42d158dcc1e36240156e623df782e', '2015-04-01 19:43:55', '2015-04-01 19:43:55', 689259936)
|
321782
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '259781d1a874225d535afe693c435907', '2015-04-01 19:43:55', '2015-04-01 19:43:55', 762608046)[0m
|
321783
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
|
321784
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-04-01 19:43:55', '2015-04-01 19:43:55', 902541635)[0m
|
321785
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-04-01 19:43:55', '2015-04-01 19:43:55', 380377255)
|
321786
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-04-01 19:43:55', '2015-04-01 19:43:55', 619379998)[0m
|
321787
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "cars"
|
321788
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-04-01 19:43:55', '2015-04-01 19:43:55', 421646738, 336964236)[0m
|
321789
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "tags"
|
321790
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '58aeb8e841261e3fac44c71591d03edd', '2015-04-01 19:43:55', '2015-04-01 19:43:55', 884173432)[0m
|
321791
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f789e59d321bf667f81d2288bccc3606', '2015-04-01 19:43:55', '2015-04-01 19:43:55', 1035759634)
|
321792
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'eec8b21a389bb9d947ff9b3409c22e0c', '2015-04-01 19:43:55', '2015-04-01 19:43:55', 471587404)[0m
|
321793
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "ssns"
|
321794
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9854eac34d4499176ac223f86d70e145', '2015-04-01 19:43:55', '2015-04-01 19:43:55', 819246218)[0m
|
321795
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '54c2ccc06fec69f45f73f060c09a353d', '2015-04-01 19:43:55', '2015-04-01 19:43:55', 970698464)
|
321796
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '79dcb82a48faf65375ff9d5f5d0a9515', '2015-04-01 19:43:55', '2015-04-01 19:43:55', 410780858)[0m
|
321797
|
+
[1m[35m (23.8ms)[0m commit transaction
|
321798
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
321799
|
+
---------------------------------------------------------------------------------------------------------
|
321800
|
+
PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy
|
321801
|
+
---------------------------------------------------------------------------------------------------------
|
321802
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
321803
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
321804
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321805
|
+
--------------------------------------------------------------------------------
|
321806
|
+
PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy
|
321807
|
+
--------------------------------------------------------------------------------
|
321808
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1[0m [["id", 261299535]]
|
321809
|
+
[1m[35mAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["addressable_id", 261299535], ["addressable_type", "Profile"]]
|
321810
|
+
[1m[36mGeoLocation Load (0.1ms)[0m [1mSELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1[0m [["address_id", 761411935]]
|
321811
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
321812
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321813
|
+
---------------------------------------------------------------------------
|
321814
|
+
PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name
|
321815
|
+
---------------------------------------------------------------------------
|
321816
|
+
[1m[35mProfile Load (0.1ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]
|
321817
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
321818
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321819
|
+
---------------------------------------------------------------------
|
321820
|
+
PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items
|
321821
|
+
---------------------------------------------------------------------
|
321822
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1[0m [["id", 261299535]]
|
321823
|
+
[1m[35mAddress Load (0.0ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["addressable_id", 261299535], ["addressable_type", "Profile"]]
|
321824
|
+
[1m[36mGeoLocation Load (0.0ms)[0m [1mSELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1[0m [["address_id", 761411935]]
|
321825
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
321826
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321827
|
+
---------------------------------------------------------------------------------
|
321828
|
+
PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships
|
321829
|
+
---------------------------------------------------------------------------------
|
321830
|
+
[1m[35mProfile Load (0.1ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]
|
321831
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
321832
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321833
|
+
--------------------------------------------------------------------------
|
321834
|
+
PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes
|
321835
|
+
--------------------------------------------------------------------------
|
321836
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
321837
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
321838
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321839
|
+
---------------------------------------------------------------------------
|
321840
|
+
PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations
|
321841
|
+
---------------------------------------------------------------------------
|
321842
|
+
[1m[35mProfile Load (0.1ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]
|
321843
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
321844
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321845
|
+
------------------------------------------------------------
|
321846
|
+
PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command
|
321847
|
+
------------------------------------------------------------
|
321848
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1[0m [["id", 261299535]]
|
321849
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
321850
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321851
|
+
---------------------------------------------------------------
|
321852
|
+
PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness
|
321853
|
+
---------------------------------------------------------------
|
321854
|
+
[1m[35mProfile Load (0.1ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]
|
321855
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
321856
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321857
|
+
-------------------------------------------------------------
|
321858
|
+
PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness
|
321859
|
+
-------------------------------------------------------------
|
321860
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1[0m [["id", 261299535]]
|
321861
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
321862
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321863
|
+
----------------------------------------------------------------
|
321864
|
+
PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child
|
321865
|
+
----------------------------------------------------------------
|
321866
|
+
[1m[35mProfile Load (0.1ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]
|
321867
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
321868
|
+
[1m[35m (0.1ms)[0m begin transaction
|
321869
|
+
---------------------------------------------------------------------------------
|
321870
|
+
PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes
|
321871
|
+
---------------------------------------------------------------------------------
|
321872
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1[0m [["id", 261299535]]
|
321873
|
+
[1m[35mPhoto Load (0.1ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]
|
321874
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
321875
|
+
[1m[35m (0.1ms)[0m begin transaction
|
321876
|
+
-------------------------------------------------------------------
|
321877
|
+
PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id
|
321878
|
+
-------------------------------------------------------------------
|
321879
|
+
[1m[36mPhoto Load (0.1ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1[0m [["id", 971855462]]
|
321880
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
321881
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
321882
|
+
[1m[35mPhoto Load (0.0ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
321883
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
321884
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321885
|
+
--------------------------------------------------------------------------
|
321886
|
+
PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method
|
321887
|
+
--------------------------------------------------------------------------
|
321888
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
321889
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
321890
|
+
[1m[36mPhoto Load (0.0ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
321891
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
321892
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321893
|
+
--------------------------------------------------------------------------
|
321894
|
+
PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present?
|
321895
|
+
--------------------------------------------------------------------------
|
321896
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
321897
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
321898
|
+
[1m[35mPhoto Load (0.0ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
321899
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
321900
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321901
|
+
-----------------------------------------------------------
|
321902
|
+
PolyBelongsTo::FakedCollection: test_0005_checks if #empty?
|
321903
|
+
-----------------------------------------------------------
|
321904
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
321905
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
321906
|
+
[1m[36mPhoto Load (0.0ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
321907
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
321908
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321909
|
+
------------------------------------------------------------------------------------
|
321910
|
+
PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object
|
321911
|
+
------------------------------------------------------------------------------------
|
321912
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
321913
|
+
[1m[36mProfile Load (0.0ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
321914
|
+
[1m[35mPhoto Load (0.0ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
321915
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
321916
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321917
|
+
----------------------------------------------------------
|
321918
|
+
PolyBelongsTo::FakedCollection: test_0004_#all is an Array
|
321919
|
+
----------------------------------------------------------
|
321920
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
321921
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
321922
|
+
[1m[36mPhoto Load (0.0ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
321923
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
321924
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321925
|
+
-----------------------------------------------------------------------
|
321926
|
+
PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last
|
321927
|
+
-----------------------------------------------------------------------
|
321928
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
321929
|
+
[1m[36mProfile Load (0.0ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
321930
|
+
[1m[35mPhoto Load (0.0ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
321931
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
321932
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321933
|
+
------------------------------------------------------------------------
|
321934
|
+
PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly
|
321935
|
+
------------------------------------------------------------------------
|
321936
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
321937
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
321938
|
+
[1m[36mPhoto Load (0.0ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
321939
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
321940
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321941
|
+
--------------------------------------------------------------------------------
|
321942
|
+
PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object
|
321943
|
+
--------------------------------------------------------------------------------
|
321944
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
321945
|
+
[1m[36mProfile Load (0.0ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
321946
|
+
[1m[35mPhoto Load (0.0ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
321947
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
321948
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321949
|
+
-----------------------------------------------------------------------------
|
321950
|
+
PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object
|
321951
|
+
-----------------------------------------------------------------------------
|
321952
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
321953
|
+
[1m[35mProfile Load (0.1ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
321954
|
+
[1m[36mPhoto Load (0.0ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
321955
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
321956
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321957
|
+
--------------------------------------------------------------------------
|
321958
|
+
PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass
|
321959
|
+
--------------------------------------------------------------------------
|
321960
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
321961
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321962
|
+
------------------------------------------------------------
|
321963
|
+
PolyBelongsTo::FakedCollection: test_0009_#first is the item
|
321964
|
+
------------------------------------------------------------
|
321965
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
321966
|
+
[1m[36mProfile Load (0.0ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
321967
|
+
[1m[35mPhoto Load (0.0ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
321968
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
321969
|
+
[1m[35m (0.0ms)[0m begin transaction
|
321970
|
+
---------------------------------------------------------------------
|
321971
|
+
PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately
|
321972
|
+
---------------------------------------------------------------------
|
321973
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
321974
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
321975
|
+
[1m[36mPhoto Load (0.0ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
321976
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
321977
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "photos" WHERE "photos"."id" = ?[0m [["id", 971855462]]
|
321978
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
321979
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
321980
|
+
[1m[35m (0.1ms)[0m begin transaction
|
321981
|
+
--------------------------------------------------------------------------------------
|
321982
|
+
PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class
|
321983
|
+
--------------------------------------------------------------------------------------
|
321984
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
321985
|
+
[1m[35mProfile Load (0.1ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
321986
|
+
[1m[36mPhoto Load (0.0ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
321987
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
321988
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321989
|
+
----------------------------------------------------------------------
|
321990
|
+
PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid?
|
321991
|
+
----------------------------------------------------------------------
|
321992
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
321993
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
321994
|
+
[1m[35mPhoto Load (0.0ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
321995
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
321996
|
+
[1m[35m (0.1ms)[0m begin transaction
|
321997
|
+
-------------------------------------------------------------------------
|
321998
|
+
PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil
|
321999
|
+
-------------------------------------------------------------------------
|
322000
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
322001
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
322002
|
+
[1m[36mPhoto Load (0.0ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
322003
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
322004
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "photos" WHERE "photos"."id" = ?[0m [["id", 971855462]]
|
322005
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
322006
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
322007
|
+
[1m[35m (0.0ms)[0m begin transaction
|
322008
|
+
------------------------------------------------------------------------------------------------
|
322009
|
+
PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection
|
322010
|
+
------------------------------------------------------------------------------------------------
|
322011
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
322012
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
322013
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
322014
|
+
---------------------------------------------------------------------------
|
322015
|
+
PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0
|
322016
|
+
---------------------------------------------------------------------------
|
322017
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
322018
|
+
[1m[36mProfile Load (0.0ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
322019
|
+
[1m[35mPhoto Load (0.0ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
322020
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
322021
|
+
[1m[35m (0.0ms)[0m begin transaction
|
322022
|
+
-----------------------------------------------------------
|
322023
|
+
PolyBelongsTo::FakedCollection: test_0010_#last is the item
|
322024
|
+
-----------------------------------------------------------
|
322025
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
322026
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
322027
|
+
[1m[36mPhoto Load (0.0ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
322028
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
322029
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
322030
|
+
------------------------------------------------------------------------------------
|
322031
|
+
PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor
|
322032
|
+
------------------------------------------------------------------------------------
|
322033
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
322034
|
+
[1m[36mProfile Load (0.0ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
322035
|
+
[1m[35mPhoto Load (0.0ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
322036
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
322037
|
+
[1m[35m (0.0ms)[0m begin transaction
|
322038
|
+
--------------------------------------------------------------
|
322039
|
+
PolyBelongsTo::FakedCollection: test_0008_works with #presence
|
322040
|
+
--------------------------------------------------------------
|
322041
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
322042
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
322043
|
+
[1m[36mPhoto Load (0.1ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
322044
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
322045
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
322046
|
+
-------------------------------------------------------------------------
|
322047
|
+
PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many
|
322048
|
+
-------------------------------------------------------------------------
|
322049
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
322050
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
322051
|
+
[1m[35m (0.0ms)[0m begin transaction
|
322052
|
+
-------------------------------------------------------------------
|
322053
|
+
PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately
|
322054
|
+
-------------------------------------------------------------------
|
322055
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
322056
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
322057
|
+
[1m[36mPhoto Load (0.0ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
322058
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
322059
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
322060
|
+
--------------------------------------------------------------------------------------
|
322061
|
+
PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls
|
322062
|
+
--------------------------------------------------------------------------------------
|
322063
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
322064
|
+
[1m[36mProfile Load (0.0ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
322065
|
+
[1m[35mPhoto Load (0.0ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
322066
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
322067
|
+
[1m[35m (0.1ms)[0m begin transaction
|
322068
|
+
-----------------------------------------------------------------------------------------------------------
|
322069
|
+
PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name
|
322070
|
+
-----------------------------------------------------------------------------------------------------------
|
322071
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
322072
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
322073
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
322074
|
+
-------------------------------------------------------------------
|
322075
|
+
PolyBelongsTo::SingletonSet: test_0004_can tell you what's included
|
322076
|
+
-------------------------------------------------------------------
|
322077
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
322078
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
322079
|
+
[1m[35m (0.0ms)[0m begin transaction
|
322080
|
+
--------------------------------------------------------
|
322081
|
+
PolyBelongsTo::SingletonSet: test_0005_flags a duplicate
|
322082
|
+
--------------------------------------------------------
|
322083
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
322084
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
322085
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
322086
|
+
------------------------------------------------------------------------
|
322087
|
+
PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name
|
322088
|
+
------------------------------------------------------------------------
|
322089
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
322090
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
322091
|
+
[1m[35m (0.0ms)[0m begin transaction
|
322092
|
+
------------------------------------------------------
|
322093
|
+
PolyBelongsTo::SingletonSet: test_0002_adds with :add?
|
322094
|
+
------------------------------------------------------
|
322095
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
322096
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
322097
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
322098
|
+
---------------------------------------------------------------------
|
322099
|
+
PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items
|
322100
|
+
---------------------------------------------------------------------
|
322101
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
322102
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
322103
|
+
[1m[35m (0.1ms)[0m begin transaction
|
322104
|
+
---------------------------------------------------------------------
|
322105
|
+
PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents
|
322106
|
+
---------------------------------------------------------------------
|
322107
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ?[0m [["user_id", 1]]
|
322108
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
322109
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["id", 1], ["created_at", "2015-04-01 19:43:55.872191"], ["updated_at", "2015-04-01 19:43:55.872191"]]
|
322110
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-04-01 19:43:55.873472"], ["updated_at", "2015-04-01 19:43:55.873472"]]
|
322111
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-04-01 19:43:55.874470"], ["updated_at", "2015-04-01 19:43:55.874470"]]
|
322112
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
322113
|
+
[1m[36mTire Load (0.1ms)[0m [1mSELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1[0m [["car_id", 421646739]]
|
322114
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
322115
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 421646739]]
|
322116
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
322117
|
+
[1m[36mSsn Load (0.1ms)[0m [1mSELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1[0m [["user_id", 1]]
|
322118
|
+
[1m[35mTag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]]
|
322119
|
+
[1m[36mContact Load (0.1ms)[0m [1mSELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ?[0m [["user_id", 1]]
|
322120
|
+
[1m[35mProfile Load (0.1ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]]
|
322121
|
+
[1m[36mTire Load (0.1ms)[0m [1mSELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ?[0m [["car_id", 421646739]]
|
322122
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]]
|
322123
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "cars" WHERE "cars"."id" = ?[0m [["id", 421646739]]
|
322124
|
+
[1m[35mTire Load (0.1ms)[0m SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]]
|
322125
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]]
|
322126
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
322127
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
322128
|
+
[1m[35m (0.1ms)[0m begin transaction
|
322129
|
+
------------------------------------------------------------------------------------
|
322130
|
+
PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id
|
322131
|
+
------------------------------------------------------------------------------------
|
322132
|
+
[1m[36mTag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 884173432]]
|
322133
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
322134
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
322135
|
+
---------------------------------------------------------------------------------------
|
322136
|
+
PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes
|
322137
|
+
---------------------------------------------------------------------------------------
|
322138
|
+
[1m[35mPhone Load (0.2ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]
|
322139
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
322140
|
+
[1m[35m (0.0ms)[0m begin transaction
|
322141
|
+
-------------------------------------------------------------------------------------
|
322142
|
+
PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil
|
322143
|
+
-------------------------------------------------------------------------------------
|
322144
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
322145
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
322146
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
322147
|
+
------------------------------------------------------------------------
|
322148
|
+
PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable
|
322149
|
+
------------------------------------------------------------------------
|
322150
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]
|
322151
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
322152
|
+
[1m[35m (0.0ms)[0m begin transaction
|
322153
|
+
----------------------------------------------------------------------
|
322154
|
+
PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic
|
322155
|
+
----------------------------------------------------------------------
|
322156
|
+
[1m[36mAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1[0m [["id", 761411935]]
|
322157
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]
|
322158
|
+
[1m[36mProfile Load (0.0ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1[0m [["id", 261299535]]
|
322159
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
322160
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
322161
|
+
---------------------------------------------------------------------------
|
322162
|
+
PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance
|
322163
|
+
---------------------------------------------------------------------------
|
322164
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
322165
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
322166
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
322167
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
322168
|
+
------------------------------------------------------------------------------------------
|
322169
|
+
PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat
|
322170
|
+
------------------------------------------------------------------------------------------
|
322171
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
322172
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-04-01 19:43:55.904969"], ["updated_at", "2015-04-01 19:43:55.904969"]]
|
322173
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
322174
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
322175
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 141], ["created_at", "2015-04-01 19:43:55.907034"], ["updated_at", "2015-04-01 19:43:55.907034"]]
|
322176
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
322177
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
322178
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["beta_id", 141], ["created_at", "2015-04-01 19:43:55.909000"], ["updated_at", "2015-04-01 19:43:55.909000"]]
|
322179
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
322180
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
322181
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 141], ["created_at", "2015-04-01 19:43:55.910835"], ["updated_at", "2015-04-01 19:43:55.910835"]]
|
322182
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
322183
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
322184
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ?[0m [["delta_id", 141], ["updated_at", "2015-04-01 19:43:55.912283"], ["id", 141]]
|
322185
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
322186
|
+
[1m[36mCapa Load (0.1ms)[0m [1mSELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1[0m [["id", 141]]
|
322187
|
+
[1m[35mCapa Load (0.0ms)[0m SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 141]]
|
322188
|
+
[1m[36mCapa Load (0.1ms)[0m [1mSELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1[0m [["id", 141]]
|
322189
|
+
[1m[35mCapa Load (0.0ms)[0m SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 141]]
|
322190
|
+
[1m[36mBeta Load (0.1ms)[0m [1mSELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1[0m [["id", 141]]
|
322191
|
+
[1m[35mBeta Load (0.0ms)[0m SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 141]]
|
322192
|
+
[1m[36mBeta Load (0.0ms)[0m [1mSELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1[0m [["id", 141]]
|
322193
|
+
[1m[35mAlpha Load (0.1ms)[0m SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 141]]
|
322194
|
+
[1m[36mAlpha Load (0.0ms)[0m [1mSELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1[0m [["id", 141]]
|
322195
|
+
[1m[35mAlpha Load (0.0ms)[0m SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 141]]
|
322196
|
+
[1m[36mDelta Load (0.1ms)[0m [1mSELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1[0m [["id", 141]]
|
322197
|
+
[1m[35mDelta Load (0.0ms)[0m SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 141]]
|
322198
|
+
[1m[36mDelta Load (0.0ms)[0m [1mSELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1[0m [["id", 141]]
|
322199
|
+
[1m[35mDelta Load (0.0ms)[0m SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 141]]
|
322200
|
+
[1m[36mDelta Load (0.0ms)[0m [1mSELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1[0m [["id", 141]]
|
322201
|
+
[1m[35mCapa Load (0.0ms)[0m SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 141]]
|
322202
|
+
[1m[36mCapa Load (0.0ms)[0m [1mSELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1[0m [["id", 141]]
|
322203
|
+
[1m[35mCapa Load (0.0ms)[0m SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 141]]
|
322204
|
+
[1m[36mBeta Load (0.0ms)[0m [1mSELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1[0m [["id", 141]]
|
322205
|
+
[1m[35mBeta Load (0.0ms)[0m SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 141]]
|
322206
|
+
[1m[36mBeta Load (0.0ms)[0m [1mSELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1[0m [["id", 141]]
|
322207
|
+
[1m[35mAlpha Load (0.0ms)[0m SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 141]]
|
322208
|
+
[1m[36mAlpha Load (0.0ms)[0m [1mSELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1[0m [["id", 141]]
|
322209
|
+
[1m[35mAlpha Load (0.0ms)[0m SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 141]]
|
322210
|
+
[1m[36mAlpha Load (0.0ms)[0m [1mSELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1[0m [["id", 141]]
|
322211
|
+
[1m[35mAlpha Load (0.0ms)[0m SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 141]]
|
322212
|
+
[1m[36mDelta Load (0.0ms)[0m [1mSELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1[0m [["id", 141]]
|
322213
|
+
[1m[35mDelta Load (0.0ms)[0m SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 141]]
|
322214
|
+
[1m[36mDelta Load (0.0ms)[0m [1mSELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1[0m [["id", 141]]
|
322215
|
+
[1m[35mCapa Load (0.0ms)[0m SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 141]]
|
322216
|
+
[1m[36mCapa Load (0.0ms)[0m [1mSELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1[0m [["id", 141]]
|
322217
|
+
[1m[35mCapa Load (0.0ms)[0m SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 141]]
|
322218
|
+
[1m[36mBeta Load (0.0ms)[0m [1mSELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1[0m [["id", 141]]
|
322219
|
+
[1m[35mBeta Load (0.0ms)[0m SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 141]]
|
322220
|
+
[1m[36mBeta Load (0.0ms)[0m [1mSELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1[0m [["id", 141]]
|
322221
|
+
[1m[35mBeta Load (0.0ms)[0m SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 141]]
|
322222
|
+
[1m[36mBeta Load (0.0ms)[0m [1mSELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1[0m [["id", 141]]
|
322223
|
+
[1m[35mAlpha Load (0.0ms)[0m SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 141]]
|
322224
|
+
[1m[36mAlpha Load (0.0ms)[0m [1mSELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1[0m [["id", 141]]
|
322225
|
+
[1m[35mAlpha Load (0.0ms)[0m SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 141]]
|
322226
|
+
[1m[36mDelta Load (0.0ms)[0m [1mSELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1[0m [["id", 141]]
|
322227
|
+
[1m[35mDelta Load (0.0ms)[0m SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 141]]
|
322228
|
+
[1m[36mDelta Load (0.0ms)[0m [1mSELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1[0m [["id", 141]]
|
322229
|
+
[1m[35mCapa Load (0.0ms)[0m SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 141]]
|
322230
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
322231
|
+
[1m[35m (0.0ms)[0m begin transaction
|
322232
|
+
--------------------------------------------------------------------------------------------
|
322233
|
+
PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id
|
322234
|
+
--------------------------------------------------------------------------------------------
|
322235
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 1053526200]]
|
322236
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
322237
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
322238
|
+
----------------------------------------------------------------------------------------------
|
322239
|
+
PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship
|
322240
|
+
----------------------------------------------------------------------------------------------
|
322241
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
322242
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-04-01 19:43:55.926771"], ["updated_at", "2015-04-01 19:43:55.926771"]]
|
322243
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
322244
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
322245
|
+
[1m[35m (0.1ms)[0m begin transaction
|
322246
|
+
-----------------------------------------------------------------------
|
322247
|
+
PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag
|
322248
|
+
-----------------------------------------------------------------------
|
322249
|
+
[1m[36mTag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 884173432]]
|
322250
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
322251
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
322252
|
+
--------------------------------------------------------------------------------------
|
322253
|
+
PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone
|
322254
|
+
--------------------------------------------------------------------------------------
|
322255
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]
|
322256
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
322257
|
+
[1m[35m (0.0ms)[0m begin transaction
|
322258
|
+
----------------------------------------------------------------
|
322259
|
+
PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil
|
322260
|
+
----------------------------------------------------------------
|
322261
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
322262
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
322263
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
322264
|
+
------------------------------------------------------------------------------------
|
322265
|
+
PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil
|
322266
|
+
------------------------------------------------------------------------------------
|
322267
|
+
[1m[35mTag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]
|
322268
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
322269
|
+
[1m[35m (0.0ms)[0m begin transaction
|
322270
|
+
------------------------------------------------------------------
|
322271
|
+
PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil
|
322272
|
+
------------------------------------------------------------------
|
322273
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
322274
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
322275
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
322276
|
+
----------------------------------------------------------------------
|
322277
|
+
PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user
|
322278
|
+
----------------------------------------------------------------------
|
322279
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
322280
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
322281
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-04-01 19:43:55.935113"], ["updated_at", "2015-04-01 19:43:55.935113"]]
|
322282
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
322283
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
322284
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
322285
|
+
[1m[35m (0.0ms)[0m begin transaction
|
322286
|
+
---------------------------------------------------------------------------------
|
322287
|
+
PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil
|
322288
|
+
---------------------------------------------------------------------------------
|
322289
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
322290
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
322291
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
322292
|
+
--------------------------------------------------------------------
|
322293
|
+
PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil
|
322294
|
+
--------------------------------------------------------------------
|
322295
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
322296
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
322297
|
+
[1m[35m (0.0ms)[0m begin transaction
|
322298
|
+
---------------------------------------------------------------------------
|
322299
|
+
PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile'
|
322300
|
+
---------------------------------------------------------------------------
|
322301
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 1053526200]]
|
322302
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
322303
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
322304
|
+
---------------------------------------------------------------------
|
322305
|
+
PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id
|
322306
|
+
---------------------------------------------------------------------
|
322307
|
+
[1m[35mTag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]
|
322308
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
322309
|
+
[1m[35m (0.0ms)[0m begin transaction
|
322310
|
+
-------------------------------------------------------------------------------------------------------------------------
|
322311
|
+
PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first
|
322312
|
+
-------------------------------------------------------------------------------------------------------------------------
|
322313
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
322314
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-04-01 19:43:55.941306"], ["updated_at", "2015-04-01 19:43:55.941306"]]
|
322315
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
322316
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
322317
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["alpha_id", 141], ["created_at", "2015-04-01 19:43:55.943574"], ["updated_at", "2015-04-01 19:43:55.943574"]]
|
322318
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
322319
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
322320
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 141], ["created_at", "2015-04-01 19:43:55.945472"], ["updated_at", "2015-04-01 19:43:55.945472"]]
|
322321
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
322322
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
322323
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["capa_id", 141], ["created_at", "2015-04-01 19:43:55.947276"], ["updated_at", "2015-04-01 19:43:55.947276"]]
|
322324
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
322325
|
+
[1m[36mCapa Load (0.0ms)[0m [1mSELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1[0m [["id", 141]]
|
322326
|
+
[1m[35mCapa Load (0.0ms)[0m SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 141]]
|
322327
|
+
[1m[36mCapa Load (0.0ms)[0m [1mSELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1[0m [["id", 141]]
|
322328
|
+
[1m[35mCapa Load (0.0ms)[0m SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 141]]
|
322329
|
+
[1m[36mBeta Load (0.1ms)[0m [1mSELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1[0m [["id", 141]]
|
322330
|
+
[1m[35mBeta Load (0.0ms)[0m SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 141]]
|
322331
|
+
[1m[36mBeta Load (0.0ms)[0m [1mSELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1[0m [["id", 141]]
|
322332
|
+
[1m[35mAlpha Load (0.0ms)[0m SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 141]]
|
322333
|
+
[1m[36mAlpha Load (0.0ms)[0m [1mSELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1[0m [["id", 141]]
|
322334
|
+
[1m[35mAlpha Load (0.0ms)[0m SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 141]]
|
322335
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
322336
|
+
[1m[35m (0.0ms)[0m begin transaction
|
322337
|
+
-----------------------------------------------------
|
322338
|
+
PolyBelongsTo::Core: test_0008_#pbts multiple parents
|
322339
|
+
-----------------------------------------------------
|
322340
|
+
[1m[36mTire Load (0.1ms)[0m [1mSELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1[0m [["id", 438300604]]
|
322341
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
322342
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
322343
|
+
----------------------------------------------------------------
|
322344
|
+
PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil
|
322345
|
+
----------------------------------------------------------------
|
322346
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
322347
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
322348
|
+
[1m[35m (0.1ms)[0m begin transaction
|
322349
|
+
------------------------------------------
|
322350
|
+
PolyBelongsTo::Core: test_0001_is a module
|
322351
|
+
------------------------------------------
|
322352
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
322353
|
+
[1m[35m (0.0ms)[0m begin transaction
|
322354
|
+
-------------------------------------------------------------------
|
322355
|
+
PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil
|
322356
|
+
-------------------------------------------------------------------
|
322357
|
+
[1m[36mTag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 884173432]]
|
322358
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
322359
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
322360
|
+
--------------------------------------------------------------------------------------------------
|
322361
|
+
PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type
|
322362
|
+
--------------------------------------------------------------------------------------------------
|
322363
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]
|
322364
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
322365
|
+
[1m[35m (0.0ms)[0m begin transaction
|
322366
|
+
------------------------------------------------------------
|
322367
|
+
PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic
|
322368
|
+
------------------------------------------------------------
|
322369
|
+
[1m[36mTag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 884173432]]
|
322370
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
322371
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
322372
|
+
-------------------------------------------------------------------------------
|
322373
|
+
PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id
|
322374
|
+
-------------------------------------------------------------------------------
|
322375
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]
|
322376
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
322377
|
+
[1m[35m (0.0ms)[0m begin transaction
|
322378
|
+
-------------------------------------------------------------------------
|
322379
|
+
PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user
|
322380
|
+
-------------------------------------------------------------------------
|
322381
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
322382
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
322383
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
322384
|
+
-----------------------------------------------------------------------
|
322385
|
+
PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile
|
322386
|
+
-----------------------------------------------------------------------
|
322387
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
322388
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
322389
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-04-01 19:43:55.961677"], ["updated_at", "2015-04-01 19:43:55.961677"]]
|
322390
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-04-01 19:43:55.962892"], ["updated_at", "2015-04-01 19:43:55.962892"]]
|
322391
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
322392
|
+
[1m[36mProfile Load (0.0ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1[0m [["id", 966629573]]
|
322393
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
322394
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
322395
|
+
----------------------------------------------------------
|
322396
|
+
PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic
|
322397
|
+
----------------------------------------------------------
|
322398
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]
|
322399
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
322400
|
+
[1m[35m (0.1ms)[0m begin transaction
|
322401
|
+
-----------------------------------------------------------------
|
322402
|
+
PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user
|
322403
|
+
-----------------------------------------------------------------
|
322404
|
+
[1m[36mTag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 884173432]]
|
322405
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
322406
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
322407
|
+
-------------------------------------------------------------
|
322408
|
+
PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic
|
322409
|
+
-------------------------------------------------------------
|
322410
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
322411
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
322412
|
+
[1m[35m (0.2ms)[0m begin transaction
|
322413
|
+
------------------------------------------------------------
|
322414
|
+
PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build
|
322415
|
+
------------------------------------------------------------
|
322416
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
322417
|
+
[1m[35m (0.1ms)[0m begin transaction
|
322418
|
+
--------------------------------------------------------------------------------------
|
322419
|
+
PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes
|
322420
|
+
--------------------------------------------------------------------------------------
|
322421
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
322422
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]
|
322423
|
+
[1m[36mPhoto Load (0.1ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 261299535], ["photoable_type", "Profile"]]
|
322424
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]]
|
322425
|
+
[1m[36mSquishy Load (0.1ms)[0m [1mSELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1[0m [["squishable_id", 1053526200], ["squishable_type", "Phone"]]
|
322426
|
+
[1m[35mAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]]
|
322427
|
+
[1m[36mGeoLocation Load (0.0ms)[0m [1mSELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1[0m [["address_id", 761411935]]
|
322428
|
+
[1m[35mSquishy Load (0.1ms)[0m SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]]
|
322429
|
+
[1m[36mSquishy Load (0.1ms)[0m [1mSELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ?[0m [["squishable_id", 761411935], ["squishable_type", "Address"]]
|
322430
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
322431
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
322432
|
+
------------------------------------------------------------------------------
|
322433
|
+
PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes
|
322434
|
+
------------------------------------------------------------------------------
|
322435
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
322436
|
+
[1m[36mProfile Load (0.0ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1[0m [["id", 966629572]]
|
322437
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
322438
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
322439
|
+
-------------------------------------------------------
|
322440
|
+
PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build
|
322441
|
+
-------------------------------------------------------
|
322442
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
322443
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
322444
|
+
-------------------------------------------------------------------------------------------------------
|
322445
|
+
PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle
|
322446
|
+
-------------------------------------------------------------------------------------------------------
|
322447
|
+
[1m[35mDelta Load (0.1ms)[0m SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 140]]
|
322448
|
+
[1m[36mAlpha Load (0.0ms)[0m [1mSELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1[0m [["id", 140]]
|
322449
|
+
[1m[35mBeta Load (0.0ms)[0m SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 140]]
|
322450
|
+
[1m[36mCapa Load (0.0ms)[0m [1mSELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1[0m [["id", 140]]
|
322451
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
322452
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
322453
|
+
----------------------------------------------------------------------------------------------------------------------------------------
|
322454
|
+
PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference
|
322455
|
+
----------------------------------------------------------------------------------------------------------------------------------------
|
322456
|
+
[1m[35mCapa Load (0.2ms)[0m SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 140]]
|
322457
|
+
[1m[36mDelta Load (0.1ms)[0m [1mSELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ?[0m [["capa_id", 140]]
|
322458
|
+
[1m[35mAlpha Load (0.1ms)[0m SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 140]]
|
322459
|
+
[1m[36mBeta Load (0.2ms)[0m [1mSELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ?[0m [["alpha_id", 140]]
|
322460
|
+
[1m[35m (0.1ms)[0m rollback transaction
|